You've already forked lazarus-ccr
remove debugoutput in carbonrichmemo. fixed example for using SaveDialog on Save RTF button
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@890 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -108,7 +108,7 @@ procedure GetATSUFontRGBAColor(AStyle: ATSUStyle; var r,g,b,a: Byte);
|
|||||||
var
|
var
|
||||||
rgba : ATSURGBAlphaColor;
|
rgba : ATSURGBAlphaColor;
|
||||||
begin
|
begin
|
||||||
writeln('getting color= ', ATSUGetAttribute(AStyle, kATSURGBAlphaColorTag, sizeof(ATSURGBAlphaColor), @rgba, nil));
|
ATSUGetAttribute(AStyle, kATSURGBAlphaColorTag, sizeof(ATSURGBAlphaColor), @rgba, nil);
|
||||||
r := Round(rgba.red*255);
|
r := Round(rgba.red*255);
|
||||||
g := Round(rgba.green*255);
|
g := Round(rgba.green*255);
|
||||||
b := Round(rgba.blue*255);
|
b := Round(rgba.blue*255);
|
||||||
|
@ -32,25 +32,25 @@
|
|||||||
<PackageName Value="LCL"/>
|
<PackageName Value="LCL"/>
|
||||||
</Item2>
|
</Item2>
|
||||||
</RequiredPackages>
|
</RequiredPackages>
|
||||||
<Units Count="47">
|
<Units Count="50">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="project1.lpr"/>
|
<Filename Value="project1.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="project1"/>
|
<UnitName Value="project1"/>
|
||||||
<CursorPos X="12" Y="6"/>
|
<CursorPos X="12" Y="6"/>
|
||||||
<TopLine Value="6"/>
|
<TopLine Value="6"/>
|
||||||
<UsageCount Value="61"/>
|
<UsageCount Value="64"/>
|
||||||
</Unit0>
|
</Unit0>
|
||||||
<Unit1>
|
<Unit1>
|
||||||
<Filename Value="unit1.pas"/>
|
<Filename Value="unit1.pas"/>
|
||||||
<ComponentName Value="Form1"/>
|
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
|
<ComponentName Value="Form1"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="Unit1"/>
|
<UnitName Value="Unit1"/>
|
||||||
<CursorPos X="1" Y="1"/>
|
<CursorPos X="27" Y="57"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="49"/>
|
||||||
<EditorIndex Value="0"/>
|
<EditorIndex Value="0"/>
|
||||||
<UsageCount Value="61"/>
|
<UsageCount Value="64"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit1>
|
</Unit1>
|
||||||
<Unit2>
|
<Unit2>
|
||||||
@ -135,7 +135,7 @@
|
|||||||
<UnitName Value="CarbonGDIObjects"/>
|
<UnitName Value="CarbonGDIObjects"/>
|
||||||
<CursorPos X="3" Y="1109"/>
|
<CursorPos X="3" Y="1109"/>
|
||||||
<TopLine Value="1100"/>
|
<TopLine Value="1100"/>
|
||||||
<UsageCount Value="30"/>
|
<UsageCount Value="31"/>
|
||||||
<Bookmarks Count="1">
|
<Bookmarks Count="1">
|
||||||
<Item0 X="25" Y="150" ID="1"/>
|
<Item0 X="25" Y="150" ID="1"/>
|
||||||
</Bookmarks>
|
</Bookmarks>
|
||||||
@ -190,7 +190,7 @@
|
|||||||
<UnitName Value="CarbonPrivate"/>
|
<UnitName Value="CarbonPrivate"/>
|
||||||
<CursorPos X="17" Y="649"/>
|
<CursorPos X="17" Y="649"/>
|
||||||
<TopLine Value="640"/>
|
<TopLine Value="640"/>
|
||||||
<UsageCount Value="29"/>
|
<UsageCount Value="30"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit20>
|
</Unit20>
|
||||||
<Unit21>
|
<Unit21>
|
||||||
@ -236,30 +236,36 @@
|
|||||||
<Unit27>
|
<Unit27>
|
||||||
<Filename Value="../../richmemo.pas"/>
|
<Filename Value="../../richmemo.pas"/>
|
||||||
<UnitName Value="RichMemo"/>
|
<UnitName Value="RichMemo"/>
|
||||||
<CursorPos X="1" Y="4"/>
|
<CursorPos X="15" Y="55"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="42"/>
|
||||||
<UsageCount Value="26"/>
|
<EditorIndex Value="6"/>
|
||||||
|
<UsageCount Value="27"/>
|
||||||
|
<Loaded Value="True"/>
|
||||||
</Unit27>
|
</Unit27>
|
||||||
<Unit28>
|
<Unit28>
|
||||||
<Filename Value="../../wsrichmemo.pas"/>
|
<Filename Value="../../wsrichmemo.pas"/>
|
||||||
<UnitName Value="WSRichMemo"/>
|
<UnitName Value="WSRichMemo"/>
|
||||||
<CursorPos X="1" Y="2"/>
|
<CursorPos X="31" Y="47"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="32"/>
|
||||||
<UsageCount Value="26"/>
|
<EditorIndex Value="5"/>
|
||||||
|
<UsageCount Value="27"/>
|
||||||
|
<Loaded Value="True"/>
|
||||||
</Unit28>
|
</Unit28>
|
||||||
<Unit29>
|
<Unit29>
|
||||||
<Filename Value="../../carbon/carbonrichmemo.pas"/>
|
<Filename Value="../../carbon/carbonrichmemo.pas"/>
|
||||||
<UnitName Value="CarbonRichMemo"/>
|
<UnitName Value="CarbonRichMemo"/>
|
||||||
<CursorPos X="16" Y="2"/>
|
<CursorPos X="12" Y="281"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="268"/>
|
||||||
<UsageCount Value="18"/>
|
<UsageCount Value="19"/>
|
||||||
</Unit29>
|
</Unit29>
|
||||||
<Unit30>
|
<Unit30>
|
||||||
<Filename Value="../../../fpc/packages/univint/src/MacOSAll.pas"/>
|
<Filename Value="../../../fpc/packages/univint/src/MacOSAll.pas"/>
|
||||||
<UnitName Value="MacOSAll"/>
|
<UnitName Value="MacOSAll"/>
|
||||||
<CursorPos X="39" Y="220678"/>
|
<CursorPos X="1" Y="495"/>
|
||||||
<TopLine Value="220670"/>
|
<TopLine Value="495"/>
|
||||||
<UsageCount Value="17"/>
|
<EditorIndex Value="4"/>
|
||||||
|
<UsageCount Value="18"/>
|
||||||
|
<Loaded Value="True"/>
|
||||||
</Unit30>
|
</Unit30>
|
||||||
<Unit31>
|
<Unit31>
|
||||||
<Filename Value="../../../fpc/rtl/objpas/sysutils/osutilsh.inc"/>
|
<Filename Value="../../../fpc/rtl/objpas/sysutils/osutilsh.inc"/>
|
||||||
@ -285,7 +291,7 @@
|
|||||||
<UnitName Value="CarbonPaste"/>
|
<UnitName Value="CarbonPaste"/>
|
||||||
<CursorPos X="43" Y="9"/>
|
<CursorPos X="43" Y="9"/>
|
||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UsageCount Value="45"/>
|
<UsageCount Value="48"/>
|
||||||
</Unit34>
|
</Unit34>
|
||||||
<Unit35>
|
<Unit35>
|
||||||
<Filename Value="../../../fpc/rtl/objpas/sysutils/sysutilh.inc"/>
|
<Filename Value="../../../fpc/rtl/objpas/sysutils/sysutilh.inc"/>
|
||||||
@ -296,8 +302,8 @@
|
|||||||
<Unit36>
|
<Unit36>
|
||||||
<Filename Value="../../../lazarus/lcl/widgetset/wsstdctrls.pp"/>
|
<Filename Value="../../../lazarus/lcl/widgetset/wsstdctrls.pp"/>
|
||||||
<UnitName Value="WSStdCtrls"/>
|
<UnitName Value="WSStdCtrls"/>
|
||||||
<CursorPos X="20" Y="145"/>
|
<CursorPos X="20" Y="144"/>
|
||||||
<TopLine Value="138"/>
|
<TopLine Value="131"/>
|
||||||
<UsageCount Value="14"/>
|
<UsageCount Value="14"/>
|
||||||
</Unit36>
|
</Unit36>
|
||||||
<Unit37>
|
<Unit37>
|
||||||
@ -319,8 +325,8 @@
|
|||||||
<UnitName Value="Win32RichMemoProc"/>
|
<UnitName Value="Win32RichMemoProc"/>
|
||||||
<CursorPos X="35" Y="172"/>
|
<CursorPos X="35" Y="172"/>
|
||||||
<TopLine Value="154"/>
|
<TopLine Value="154"/>
|
||||||
<EditorIndex Value="1"/>
|
<EditorIndex Value="7"/>
|
||||||
<UsageCount Value="16"/>
|
<UsageCount Value="17"/>
|
||||||
<Bookmarks Count="1">
|
<Bookmarks Count="1">
|
||||||
<Item0 X="1" Y="121" ID="2"/>
|
<Item0 X="1" Y="121" ID="2"/>
|
||||||
</Bookmarks>
|
</Bookmarks>
|
||||||
@ -374,44 +380,122 @@
|
|||||||
<TopLine Value="1"/>
|
<TopLine Value="1"/>
|
||||||
<UsageCount Value="10"/>
|
<UsageCount Value="10"/>
|
||||||
</Unit46>
|
</Unit46>
|
||||||
|
<Unit47>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<UnitName Value="CarbonEdits"/>
|
||||||
|
<CursorPos X="1" Y="1"/>
|
||||||
|
<TopLine Value="1"/>
|
||||||
|
<EditorIndex Value="1"/>
|
||||||
|
<UsageCount Value="11"/>
|
||||||
|
<Bookmarks Count="1">
|
||||||
|
<Item0 X="1" Y="188" ID="3"/>
|
||||||
|
</Bookmarks>
|
||||||
|
<Loaded Value="True"/>
|
||||||
|
</Unit47>
|
||||||
|
<Unit48>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonstrings.pp"/>
|
||||||
|
<UnitName Value="CarbonStrings"/>
|
||||||
|
<CursorPos X="25" Y="5"/>
|
||||||
|
<TopLine Value="1"/>
|
||||||
|
<EditorIndex Value="3"/>
|
||||||
|
<UsageCount Value="11"/>
|
||||||
|
<Loaded Value="True"/>
|
||||||
|
</Unit48>
|
||||||
|
<Unit49>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbondef.pp"/>
|
||||||
|
<UnitName Value="CarbonDef"/>
|
||||||
|
<CursorPos X="5" Y="83"/>
|
||||||
|
<TopLine Value="70"/>
|
||||||
|
<EditorIndex Value="2"/>
|
||||||
|
<UsageCount Value="10"/>
|
||||||
|
<Loaded Value="True"/>
|
||||||
|
</Unit49>
|
||||||
</Units>
|
</Units>
|
||||||
<JumpHistory Count="9" HistoryIndex="8">
|
<JumpHistory Count="21" HistoryIndex="20">
|
||||||
<Position1>
|
<Position1>
|
||||||
<Filename Value="unit1.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="116" Column="21" TopLine="116"/>
|
<Caret Line="1580" Column="5" TopLine="1555"/>
|
||||||
</Position1>
|
</Position1>
|
||||||
<Position2>
|
<Position2>
|
||||||
<Filename Value="unit1.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="130" Column="14" TopLine="125"/>
|
<Caret Line="1592" Column="1" TopLine="1580"/>
|
||||||
</Position2>
|
</Position2>
|
||||||
<Position3>
|
<Position3>
|
||||||
<Filename Value="../../win32/win32richmemoproc.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="5" Column="1" TopLine="1"/>
|
<Caret Line="1600" Column="1" TopLine="1584"/>
|
||||||
</Position3>
|
</Position3>
|
||||||
<Position4>
|
<Position4>
|
||||||
<Filename Value="../../win32/win32richmemoproc.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="168" Column="3" TopLine="157"/>
|
<Caret Line="1880" Column="1" TopLine="1855"/>
|
||||||
</Position4>
|
</Position4>
|
||||||
<Position5>
|
<Position5>
|
||||||
<Filename Value="../../win32/win32richmemoproc.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="169" Column="7" TopLine="157"/>
|
<Caret Line="27" Column="1" TopLine="27"/>
|
||||||
</Position5>
|
</Position5>
|
||||||
<Position6>
|
<Position6>
|
||||||
<Filename Value="../../win32/win32richmemoproc.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="179" Column="13" TopLine="157"/>
|
<Caret Line="1560" Column="5" TopLine="1535"/>
|
||||||
</Position6>
|
</Position6>
|
||||||
<Position7>
|
<Position7>
|
||||||
<Filename Value="../../win32/win32richmemoproc.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="200" Column="11" TopLine="185"/>
|
<Caret Line="1557" Column="61" TopLine="1544"/>
|
||||||
</Position7>
|
</Position7>
|
||||||
<Position8>
|
<Position8>
|
||||||
<Filename Value="../../win32/win32richmemoproc.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="361" Column="23" TopLine="350"/>
|
<Caret Line="178" Column="61" TopLine="163"/>
|
||||||
</Position8>
|
</Position8>
|
||||||
<Position9>
|
<Position9>
|
||||||
<Filename Value="../../win32/win32richmemoproc.pas"/>
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
<Caret Line="20" Column="22" TopLine="1"/>
|
<Caret Line="1561" Column="18" TopLine="1556"/>
|
||||||
</Position9>
|
</Position9>
|
||||||
|
<Position10>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="178" Column="52" TopLine="178"/>
|
||||||
|
</Position10>
|
||||||
|
<Position11>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1557" Column="61" TopLine="1557"/>
|
||||||
|
</Position11>
|
||||||
|
<Position12>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1601" Column="1" TopLine="1592"/>
|
||||||
|
</Position12>
|
||||||
|
<Position13>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1557" Column="25" TopLine="1544"/>
|
||||||
|
</Position13>
|
||||||
|
<Position14>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="178" Column="52" TopLine="178"/>
|
||||||
|
</Position14>
|
||||||
|
<Position15>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="190" Column="14" TopLine="176"/>
|
||||||
|
</Position15>
|
||||||
|
<Position16>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1560" Column="51" TopLine="1548"/>
|
||||||
|
</Position16>
|
||||||
|
<Position17>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1591" Column="19" TopLine="1578"/>
|
||||||
|
</Position17>
|
||||||
|
<Position18>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1606" Column="3" TopLine="1588"/>
|
||||||
|
</Position18>
|
||||||
|
<Position19>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1773" Column="1" TopLine="1763"/>
|
||||||
|
</Position19>
|
||||||
|
<Position20>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="1" Column="1" TopLine="1"/>
|
||||||
|
</Position20>
|
||||||
|
<Position21>
|
||||||
|
<Filename Value="../../../lazarus/lcl/interfaces/carbon/carbonedits.pp"/>
|
||||||
|
<Caret Line="342" Column="27" TopLine="333"/>
|
||||||
|
</Position21>
|
||||||
</JumpHistory>
|
</JumpHistory>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
@ -419,6 +503,13 @@
|
|||||||
<SearchPaths>
|
<SearchPaths>
|
||||||
<IncludeFiles Value="$(ProjOutDir)/"/>
|
<IncludeFiles Value="$(ProjOutDir)/"/>
|
||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
|
<Linking>
|
||||||
|
<Options>
|
||||||
|
<Win32>
|
||||||
|
<GraphicApplication Value="True"/>
|
||||||
|
</Win32>
|
||||||
|
</Options>
|
||||||
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
<CompilerPath Value="$(CompPath)"/>
|
||||||
</Other>
|
</Other>
|
||||||
|
@ -4,92 +4,241 @@ object Form1: TForm1
|
|||||||
Top = 181
|
Top = 181
|
||||||
Width = 634
|
Width = 634
|
||||||
ActiveControl = RichMemo1
|
ActiveControl = RichMemo1
|
||||||
|
Align = alNone
|
||||||
|
AllowDropFiles = False
|
||||||
|
AutoScroll = True
|
||||||
|
AutoSize = False
|
||||||
|
BorderIcons = [biSystemMenu, biMinimize, biMaximize]
|
||||||
|
BorderStyle = bsSizeable
|
||||||
|
BorderWidth = 0
|
||||||
Caption = 'Form1'
|
Caption = 'Form1'
|
||||||
ClientHeight = 457
|
ClientHeight = 457
|
||||||
ClientWidth = 634
|
ClientWidth = 634
|
||||||
|
DefaultMonitor = dmActiveForm
|
||||||
|
DockSite = False
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
|
FormStyle = fsNormal
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
|
ParentBiDiMode = True
|
||||||
|
ParentFont = False
|
||||||
|
Position = poDesigned
|
||||||
|
ShowInTaskBar = stDefault
|
||||||
|
UseDockManager = False
|
||||||
LCLVersion = '0.9.27'
|
LCLVersion = '0.9.27'
|
||||||
|
WindowState = wsNormal
|
||||||
object RichMemo1: TRichMemo
|
object RichMemo1: TRichMemo
|
||||||
Left = 15
|
Left = 15
|
||||||
Height = 358
|
Height = 358
|
||||||
Top = 16
|
Top = 16
|
||||||
Width = 619
|
Width = 619
|
||||||
|
Align = alNone
|
||||||
|
Alignment = taLeftJustify
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
|
BorderStyle = bsSingle
|
||||||
|
Color = clWindow
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
Font.Height = -13
|
Font.Height = -13
|
||||||
Font.Name = 'Tahoma'
|
Font.Name = 'Tahoma'
|
||||||
HideSelection = False
|
HideSelection = False
|
||||||
Lines.Strings = (
|
Lines.Strings = (
|
||||||
'RichMemo1'
|
'RichMemo1'
|
||||||
)
|
)
|
||||||
|
MaxLength = 0
|
||||||
|
ParentBidiMode = True
|
||||||
|
ParentColor = False
|
||||||
ParentFont = False
|
ParentFont = False
|
||||||
|
ParentShowHint = True
|
||||||
|
ReadOnly = False
|
||||||
ScrollBars = ssVertical
|
ScrollBars = ssVertical
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
TabStop = True
|
||||||
|
Visible = True
|
||||||
|
WantReturns = True
|
||||||
|
WantTabs = False
|
||||||
end
|
end
|
||||||
object Button1: TButton
|
object Button1: TButton
|
||||||
Left = 24
|
Left = 24
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 382
|
Top = 382
|
||||||
Width = 160
|
Width = 160
|
||||||
|
Align = alNone
|
||||||
Anchors = [akLeft, akBottom]
|
Anchors = [akLeft, akBottom]
|
||||||
|
AutoSize = False
|
||||||
|
Cancel = False
|
||||||
Caption = 'Make Bold and Red'
|
Caption = 'Make Bold and Red'
|
||||||
|
Color = clBtnFace
|
||||||
|
Default = False
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
|
ParentBidiMode = True
|
||||||
|
ModalResult = 0
|
||||||
OnClick = Button1Click
|
OnClick = Button1Click
|
||||||
|
ParentFont = True
|
||||||
|
ParentShowHint = True
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
TabStop = False
|
TabStop = False
|
||||||
|
Visible = True
|
||||||
end
|
end
|
||||||
object Button2: TButton
|
object Button2: TButton
|
||||||
Left = 192
|
Left = 192
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 382
|
Top = 382
|
||||||
Width = 97
|
Width = 97
|
||||||
|
Align = alNone
|
||||||
Anchors = [akLeft, akBottom]
|
Anchors = [akLeft, akBottom]
|
||||||
|
AutoSize = False
|
||||||
|
Cancel = False
|
||||||
Caption = 'Get Attribs'
|
Caption = 'Get Attribs'
|
||||||
|
Color = clBtnFace
|
||||||
|
Default = False
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
|
ParentBidiMode = True
|
||||||
|
ModalResult = 0
|
||||||
OnClick = Button2Click
|
OnClick = Button2Click
|
||||||
|
ParentFont = True
|
||||||
|
ParentShowHint = True
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
TabStop = False
|
TabStop = False
|
||||||
|
Visible = True
|
||||||
end
|
end
|
||||||
object Button3: TButton
|
object Button3: TButton
|
||||||
Left = 304
|
Left = 304
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 382
|
Top = 382
|
||||||
Width = 96
|
Width = 96
|
||||||
|
Align = alNone
|
||||||
Anchors = [akLeft, akBottom]
|
Anchors = [akLeft, akBottom]
|
||||||
|
AutoSize = False
|
||||||
|
Cancel = False
|
||||||
Caption = 'Select Font'
|
Caption = 'Select Font'
|
||||||
|
Color = clBtnFace
|
||||||
|
Default = False
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
|
ParentBidiMode = True
|
||||||
|
ModalResult = 0
|
||||||
OnClick = Button3Click
|
OnClick = Button3Click
|
||||||
|
ParentFont = True
|
||||||
|
ParentShowHint = True
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
TabStop = False
|
TabStop = False
|
||||||
|
Visible = True
|
||||||
end
|
end
|
||||||
object Button4: TButton
|
object Button4: TButton
|
||||||
Left = 528
|
Left = 528
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 382
|
Top = 382
|
||||||
Width = 75
|
Width = 75
|
||||||
|
Align = alNone
|
||||||
Anchors = [akLeft, akBottom]
|
Anchors = [akLeft, akBottom]
|
||||||
|
AutoSize = False
|
||||||
|
Cancel = False
|
||||||
Caption = 'Save RTF'
|
Caption = 'Save RTF'
|
||||||
|
Color = clBtnFace
|
||||||
|
Default = False
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
|
ParentBidiMode = True
|
||||||
|
ModalResult = 0
|
||||||
OnClick = Button4Click
|
OnClick = Button4Click
|
||||||
|
ParentFont = True
|
||||||
|
ParentShowHint = True
|
||||||
TabOrder = 4
|
TabOrder = 4
|
||||||
TabStop = False
|
TabStop = False
|
||||||
|
Visible = True
|
||||||
end
|
end
|
||||||
object Button5: TButton
|
object Button5: TButton
|
||||||
Left = 440
|
Left = 440
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 382
|
Top = 382
|
||||||
Width = 75
|
Width = 75
|
||||||
|
Align = alNone
|
||||||
Anchors = [akLeft, akBottom]
|
Anchors = [akLeft, akBottom]
|
||||||
|
AutoSize = False
|
||||||
|
Cancel = False
|
||||||
Caption = 'Load RTF'
|
Caption = 'Load RTF'
|
||||||
|
Color = clBtnFace
|
||||||
|
Default = False
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
|
ParentBidiMode = True
|
||||||
|
ModalResult = 0
|
||||||
OnClick = Button5Click
|
OnClick = Button5Click
|
||||||
|
ParentFont = True
|
||||||
|
ParentShowHint = True
|
||||||
TabOrder = 5
|
TabOrder = 5
|
||||||
TabStop = False
|
TabStop = False
|
||||||
|
Visible = True
|
||||||
end
|
end
|
||||||
object Button6: TButton
|
object Button6: TButton
|
||||||
Left = 24
|
Left = 24
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 415
|
Top = 415
|
||||||
Width = 160
|
Width = 160
|
||||||
|
Align = alNone
|
||||||
Anchors = [akLeft, akBottom]
|
Anchors = [akLeft, akBottom]
|
||||||
|
AutoSize = False
|
||||||
|
Cancel = False
|
||||||
Caption = 'Next Style Range'
|
Caption = 'Next Style Range'
|
||||||
|
Color = clBtnFace
|
||||||
|
Default = False
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
Enabled = True
|
||||||
|
ParentBidiMode = True
|
||||||
|
ModalResult = 0
|
||||||
OnClick = Button6Click
|
OnClick = Button6Click
|
||||||
|
ParentFont = True
|
||||||
|
ParentShowHint = True
|
||||||
TabOrder = 6
|
TabOrder = 6
|
||||||
TabStop = False
|
TabStop = False
|
||||||
|
Visible = True
|
||||||
|
end
|
||||||
|
object Edit1: TEdit
|
||||||
|
Left = 216
|
||||||
|
Height = 16
|
||||||
|
Top = 415
|
||||||
|
Width = 320
|
||||||
|
Align = alNone
|
||||||
|
Alignment = taLeftJustify
|
||||||
|
AutoSize = True
|
||||||
|
AutoSelect = False
|
||||||
|
BorderStyle = bsSingle
|
||||||
|
Color = clWindow
|
||||||
|
CharCase = ecNormal
|
||||||
|
DragCursor = crDrag
|
||||||
|
DragKind = dkDrag
|
||||||
|
DragMode = dmManual
|
||||||
|
EchoMode = emNormal
|
||||||
|
Enabled = True
|
||||||
|
MaxLength = 0
|
||||||
|
ParentBidiMode = True
|
||||||
|
ParentColor = False
|
||||||
|
ParentFont = True
|
||||||
|
ParentShowHint = True
|
||||||
|
PasswordChar = #0
|
||||||
|
ReadOnly = False
|
||||||
|
TabStop = True
|
||||||
|
TabOrder = 7
|
||||||
|
Text = 'Edit1'
|
||||||
|
Visible = True
|
||||||
end
|
end
|
||||||
object FontDialog1: TFontDialog
|
object FontDialog1: TFontDialog
|
||||||
MinFontSize = 0
|
MinFontSize = 0
|
||||||
|
@ -2,34 +2,73 @@
|
|||||||
|
|
||||||
LazarusResources.Add('TForm1','FORMDATA',[
|
LazarusResources.Add('TForm1','FORMDATA',[
|
||||||
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3#196#0#6'Height'#3#201#1#3'Top'#3#181#0#5
|
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3#196#0#6'Height'#3#201#1#3'Top'#3#181#0#5
|
||||||
+'Width'#3'z'#2#13'ActiveControl'#7#9'RichMemo1'#7'Caption'#6#5'Form1'#12'Cli'
|
+'Width'#3'z'#2#13'ActiveControl'#7#9'RichMemo1'#5'Align'#7#6'alNone'#14'Allo'
|
||||||
+'entHeight'#3#201#1#11'ClientWidth'#3'z'#2#8'OnCreate'#7#10'FormCreate'#10'L'
|
+'wDropFiles'#8#10'AutoScroll'#9#8'AutoSize'#8#11'BorderIcons'#11#12'biSystem'
|
||||||
+'CLVersion'#6#6'0.9.27'#0#9'TRichMemo'#9'RichMemo1'#4'Left'#2#15#6'Height'#3
|
+'Menu'#10'biMinimize'#10'biMaximize'#0#11'BorderStyle'#7#10'bsSizeable'#11'B'
|
||||||
+'f'#1#3'Top'#2#16#5'Width'#3'k'#2#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'
|
+'orderWidth'#2#0#7'Caption'#6#5'Form1'#12'ClientHeight'#3#201#1#11'ClientWid'
|
||||||
+#8'akBottom'#0#11'Font.Height'#2#243#9'Font.Name'#6#6'Tahoma'#13'HideSelecti'
|
+'th'#3'z'#2#14'DefaultMonitor'#7#12'dmActiveForm'#8'DockSite'#8#8'DragKind'#7
|
||||||
+'on'#8#13'Lines.Strings'#1#6#9'RichMemo1'#0#10'ParentFont'#8#10'ScrollBars'#7
|
+#6'dkDrag'#8'DragMode'#7#8'dmManual'#7'Enabled'#9#9'FormStyle'#7#8'fsNormal'
|
||||||
+#10'ssVertical'#8'TabOrder'#2#0#0#0#7'TButton'#7'Button1'#4'Left'#2#24#6'Hei'
|
+#8'OnCreate'#7#10'FormCreate'#14'ParentBiDiMode'#9#10'ParentFont'#8#8'Positi'
|
||||||
+'ght'#2#25#3'Top'#3'~'#1#5'Width'#3#160#0#7'Anchors'#11#6'akLeft'#8'akBottom'
|
+'on'#7#10'poDesigned'#13'ShowInTaskBar'#7#9'stDefault'#14'UseDockManager'#8
|
||||||
+#0#7'Caption'#6#17'Make Bold and Red'#7'OnClick'#7#12'Button1Click'#8'TabOrd'
|
+#10'LCLVersion'#6#6'0.9.27'#11'WindowState'#7#8'wsNormal'#0#9'TRichMemo'#9'R'
|
||||||
+'er'#2#1#7'TabStop'#8#0#0#7'TButton'#7'Button2'#4'Left'#3#192#0#6'Height'#2
|
+'ichMemo1'#4'Left'#2#15#6'Height'#3'f'#1#3'Top'#2#16#5'Width'#3'k'#2#5'Align'
|
||||||
+#25#3'Top'#3'~'#1#5'Width'#2'a'#7'Anchors'#11#6'akLeft'#8'akBottom'#0#7'Capt'
|
+#7#6'alNone'#9'Alignment'#7#13'taLeftJustify'#7'Anchors'#11#5'akTop'#6'akLef'
|
||||||
+'ion'#6#11'Get Attribs'#7'OnClick'#7#12'Button2Click'#8'TabOrder'#2#2#7'TabS'
|
+'t'#7'akRight'#8'akBottom'#0#11'BorderStyle'#7#8'bsSingle'#5'Color'#7#8'clWi'
|
||||||
+'top'#8#0#0#7'TButton'#7'Button3'#4'Left'#3'0'#1#6'Height'#2#25#3'Top'#3'~'#1
|
+'ndow'#10'DragCursor'#7#6'crDrag'#8'DragKind'#7#6'dkDrag'#8'DragMode'#7#8'dm'
|
||||||
+#5'Width'#2'`'#7'Anchors'#11#6'akLeft'#8'akBottom'#0#7'Caption'#6#11'Select '
|
+'Manual'#7'Enabled'#9#11'Font.Height'#2#243#9'Font.Name'#6#6'Tahoma'#13'Hide'
|
||||||
+'Font'#7'OnClick'#7#12'Button3Click'#8'TabOrder'#2#3#7'TabStop'#8#0#0#7'TBut'
|
+'Selection'#8#13'Lines.Strings'#1#6#9'RichMemo1'#0#9'MaxLength'#2#0#14'Paren'
|
||||||
+'ton'#7'Button4'#4'Left'#3#16#2#6'Height'#2#25#3'Top'#3'~'#1#5'Width'#2'K'#7
|
+'tBidiMode'#9#11'ParentColor'#8#10'ParentFont'#8#14'ParentShowHint'#9#8'Read'
|
||||||
+'Anchors'#11#6'akLeft'#8'akBottom'#0#7'Caption'#6#8'Save RTF'#7'OnClick'#7#12
|
+'Only'#8#10'ScrollBars'#7#10'ssVertical'#8'TabOrder'#2#0#7'TabStop'#9#7'Visi'
|
||||||
+'Button4Click'#8'TabOrder'#2#4#7'TabStop'#8#0#0#7'TButton'#7'Button5'#4'Left'
|
+'ble'#9#11'WantReturns'#9#8'WantTabs'#8#0#0#7'TButton'#7'Button1'#4'Left'#2
|
||||||
+#3#184#1#6'Height'#2#25#3'Top'#3'~'#1#5'Width'#2'K'#7'Anchors'#11#6'akLeft'#8
|
+#24#6'Height'#2#25#3'Top'#3'~'#1#5'Width'#3#160#0#5'Align'#7#6'alNone'#7'Anc'
|
||||||
+'akBottom'#0#7'Caption'#6#8'Load RTF'#7'OnClick'#7#12'Button5Click'#8'TabOrd'
|
+'hors'#11#6'akLeft'#8'akBottom'#0#8'AutoSize'#8#6'Cancel'#8#7'Caption'#6#17
|
||||||
+'er'#2#5#7'TabStop'#8#0#0#7'TButton'#7'Button6'#4'Left'#2#24#6'Height'#2#25#3
|
+'Make Bold and Red'#5'Color'#7#9'clBtnFace'#7'Default'#8#10'DragCursor'#7#6
|
||||||
+'Top'#3#159#1#5'Width'#3#160#0#7'Anchors'#11#6'akLeft'#8'akBottom'#0#7'Capti'
|
+'crDrag'#8'DragKind'#7#6'dkDrag'#8'DragMode'#7#8'dmManual'#7'Enabled'#9#14'P'
|
||||||
+'on'#6#16'Next Style Range'#7'OnClick'#7#12'Button6Click'#8'TabOrder'#2#6#7
|
+'arentBidiMode'#9#11'ModalResult'#2#0#7'OnClick'#7#12'Button1Click'#10'Paren'
|
||||||
+'TabStop'#8#0#0#11'TFontDialog'#11'FontDialog1'#11'MinFontSize'#2#0#11'MaxFo'
|
+'tFont'#9#14'ParentShowHint'#9#8'TabOrder'#2#1#7'TabStop'#8#7'Visible'#9#0#0
|
||||||
+'ntSize'#2#0#4'left'#3'`'#1#3'top'#3#173#1#0#0#11'TSaveDialog'#11'SaveDialog'
|
+#7'TButton'#7'Button2'#4'Left'#3#192#0#6'Height'#2#25#3'Top'#3'~'#1#5'Width'
|
||||||
+'1'#10'DefaultExt'#6#4'.rtf'#6'Filter'#6#27'RichText file (*.rtf)|*.rtf'#7'O'
|
+#2'a'#5'Align'#7#6'alNone'#7'Anchors'#11#6'akLeft'#8'akBottom'#0#8'AutoSize'
|
||||||
+'ptions'#11#17'ofOverwritePrompt'#14'ofEnableSizing'#12'ofViewDetail'#0#4'le'
|
+#8#6'Cancel'#8#7'Caption'#6#11'Get Attribs'#5'Color'#7#9'clBtnFace'#7'Defaul'
|
||||||
+'ft'#3#24#1#3'top'#3#173#1#0#0#11'TOpenDialog'#11'OpenDialog1'#10'DefaultExt'
|
+'t'#8#10'DragCursor'#7#6'crDrag'#8'DragKind'#7#6'dkDrag'#8'DragMode'#7#8'dmM'
|
||||||
+#6#4'.rtf'#6'Filter'#6#27'RichText file (*.rtf)|*.rtf'#4'left'#3#208#0#3'top'
|
+'anual'#7'Enabled'#9#14'ParentBidiMode'#9#11'ModalResult'#2#0#7'OnClick'#7#12
|
||||||
+#3#173#1#0#0#0
|
+'Button2Click'#10'ParentFont'#9#14'ParentShowHint'#9#8'TabOrder'#2#2#7'TabSt'
|
||||||
|
+'op'#8#7'Visible'#9#0#0#7'TButton'#7'Button3'#4'Left'#3'0'#1#6'Height'#2#25#3
|
||||||
|
+'Top'#3'~'#1#5'Width'#2'`'#5'Align'#7#6'alNone'#7'Anchors'#11#6'akLeft'#8'ak'
|
||||||
|
+'Bottom'#0#8'AutoSize'#8#6'Cancel'#8#7'Caption'#6#11'Select Font'#5'Color'#7
|
||||||
|
+#9'clBtnFace'#7'Default'#8#10'DragCursor'#7#6'crDrag'#8'DragKind'#7#6'dkDrag'
|
||||||
|
+#8'DragMode'#7#8'dmManual'#7'Enabled'#9#14'ParentBidiMode'#9#11'ModalResult'
|
||||||
|
+#2#0#7'OnClick'#7#12'Button3Click'#10'ParentFont'#9#14'ParentShowHint'#9#8'T'
|
||||||
|
+'abOrder'#2#3#7'TabStop'#8#7'Visible'#9#0#0#7'TButton'#7'Button4'#4'Left'#3
|
||||||
|
+#16#2#6'Height'#2#25#3'Top'#3'~'#1#5'Width'#2'K'#5'Align'#7#6'alNone'#7'Anch'
|
||||||
|
+'ors'#11#6'akLeft'#8'akBottom'#0#8'AutoSize'#8#6'Cancel'#8#7'Caption'#6#8'Sa'
|
||||||
|
+'ve RTF'#5'Color'#7#9'clBtnFace'#7'Default'#8#10'DragCursor'#7#6'crDrag'#8'D'
|
||||||
|
+'ragKind'#7#6'dkDrag'#8'DragMode'#7#8'dmManual'#7'Enabled'#9#14'ParentBidiMo'
|
||||||
|
+'de'#9#11'ModalResult'#2#0#7'OnClick'#7#12'Button4Click'#10'ParentFont'#9#14
|
||||||
|
+'ParentShowHint'#9#8'TabOrder'#2#4#7'TabStop'#8#7'Visible'#9#0#0#7'TButton'#7
|
||||||
|
+'Button5'#4'Left'#3#184#1#6'Height'#2#25#3'Top'#3'~'#1#5'Width'#2'K'#5'Align'
|
||||||
|
+#7#6'alNone'#7'Anchors'#11#6'akLeft'#8'akBottom'#0#8'AutoSize'#8#6'Cancel'#8
|
||||||
|
+#7'Caption'#6#8'Load RTF'#5'Color'#7#9'clBtnFace'#7'Default'#8#10'DragCursor'
|
||||||
|
+#7#6'crDrag'#8'DragKind'#7#6'dkDrag'#8'DragMode'#7#8'dmManual'#7'Enabled'#9
|
||||||
|
+#14'ParentBidiMode'#9#11'ModalResult'#2#0#7'OnClick'#7#12'Button5Click'#10'P'
|
||||||
|
+'arentFont'#9#14'ParentShowHint'#9#8'TabOrder'#2#5#7'TabStop'#8#7'Visible'#9
|
||||||
|
+#0#0#7'TButton'#7'Button6'#4'Left'#2#24#6'Height'#2#25#3'Top'#3#159#1#5'Widt'
|
||||||
|
+'h'#3#160#0#5'Align'#7#6'alNone'#7'Anchors'#11#6'akLeft'#8'akBottom'#0#8'Aut'
|
||||||
|
+'oSize'#8#6'Cancel'#8#7'Caption'#6#16'Next Style Range'#5'Color'#7#9'clBtnFa'
|
||||||
|
+'ce'#7'Default'#8#10'DragCursor'#7#6'crDrag'#8'DragKind'#7#6'dkDrag'#8'DragM'
|
||||||
|
+'ode'#7#8'dmManual'#7'Enabled'#9#14'ParentBidiMode'#9#11'ModalResult'#2#0#7
|
||||||
|
+'OnClick'#7#12'Button6Click'#10'ParentFont'#9#14'ParentShowHint'#9#8'TabOrde'
|
||||||
|
+'r'#2#6#7'TabStop'#8#7'Visible'#9#0#0#5'TEdit'#5'Edit1'#4'Left'#3#216#0#6'He'
|
||||||
|
+'ight'#2#16#3'Top'#3#159#1#5'Width'#3'@'#1#5'Align'#7#6'alNone'#9'Alignment'
|
||||||
|
+#7#13'taLeftJustify'#8'AutoSize'#9#10'AutoSelect'#8#11'BorderStyle'#7#8'bsSi'
|
||||||
|
+'ngle'#5'Color'#7#8'clWindow'#8'CharCase'#7#8'ecNormal'#10'DragCursor'#7#6'c'
|
||||||
|
+'rDrag'#8'DragKind'#7#6'dkDrag'#8'DragMode'#7#8'dmManual'#8'EchoMode'#7#8'em'
|
||||||
|
+'Normal'#7'Enabled'#9#9'MaxLength'#2#0#14'ParentBidiMode'#9#11'ParentColor'#8
|
||||||
|
+#10'ParentFont'#9#14'ParentShowHint'#9#12'PasswordChar'#6#1#0#8'ReadOnly'#8#7
|
||||||
|
+'TabStop'#9#8'TabOrder'#2#7#4'Text'#6#5'Edit1'#7'Visible'#9#0#0#11'TFontDial'
|
||||||
|
,'og'#11'FontDialog1'#11'MinFontSize'#2#0#11'MaxFontSize'#2#0#4'left'#3'`'#1#3
|
||||||
|
+'top'#3#173#1#0#0#11'TSaveDialog'#11'SaveDialog1'#10'DefaultExt'#6#4'.rtf'#6
|
||||||
|
+'Filter'#6#27'RichText file (*.rtf)|*.rtf'#7'Options'#11#17'ofOverwritePromp'
|
||||||
|
+'t'#14'ofEnableSizing'#12'ofViewDetail'#0#4'left'#3#24#1#3'top'#3#173#1#0#0
|
||||||
|
+#11'TOpenDialog'#11'OpenDialog1'#10'DefaultExt'#6#4'.rtf'#6'Filter'#6#27'Ric'
|
||||||
|
+'hText file (*.rtf)|*.rtf'#4'left'#3#208#0#3'top'#3#173#1#0#0#0
|
||||||
]);
|
]);
|
||||||
|
@ -7,6 +7,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
||||||
StdCtrls, ExtCtrls, ComCtrls,
|
StdCtrls, ExtCtrls, ComCtrls,
|
||||||
|
CarbonRichMemo,
|
||||||
RichMemo;
|
RichMemo;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -20,6 +21,7 @@ type
|
|||||||
Button4: TButton;
|
Button4: TButton;
|
||||||
Button5: TButton;
|
Button5: TButton;
|
||||||
Button6: TButton;
|
Button6: TButton;
|
||||||
|
Edit1: TEdit;
|
||||||
FontDialog1: TFontDialog;
|
FontDialog1: TFontDialog;
|
||||||
OpenDialog1: TOpenDialog;
|
OpenDialog1: TOpenDialog;
|
||||||
RichMemo1: TRichMemo;
|
RichMemo1: TRichMemo;
|
||||||
@ -80,10 +82,10 @@ procedure TForm1.Button4Click(Sender: TObject);
|
|||||||
var
|
var
|
||||||
fs : TFileStream;
|
fs : TFileStream;
|
||||||
begin
|
begin
|
||||||
if OpenDialog1.Execute then begin
|
if SaveDialog1.Execute then begin
|
||||||
fs := nil;
|
fs := nil;
|
||||||
try
|
try
|
||||||
fs := TFileStream.Create( Utf8ToAnsi(OpenDialog1.FileName), fmCreate);
|
fs := TFileStream.Create( Utf8ToAnsi(SaveDialog1.FileName), fmCreate);
|
||||||
RichMemo1.SaveRichText(fs);
|
RichMemo1.SaveRichText(fs);
|
||||||
except
|
except
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user