OnGuard: Rework sample projects.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8721 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2023-02-20 11:17:45 +00:00
parent a1792b0941
commit d6279b614d
103 changed files with 2214 additions and 1689 deletions

View File

@ -57,10 +57,9 @@
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="Exsrnmu1"/>
<IsVisibleTab Value="True"/>
<EditorIndex Value="1"/>
<TopLine Value="164"/>
<CursorPos X="48" Y="181"/>
<TopLine Value="107"/>
<CursorPos X="23" Y="126"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
@ -72,8 +71,9 @@
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="Exsrnmu2"/>
<IsVisibleTab Value="True"/>
<EditorIndex Value="2"/>
<CursorPos X="16" Y="23"/>
<CursorPos X="16" Y="24"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
<LoadedDesigner Value="True"/>
@ -82,123 +82,123 @@
<JumpHistory Count="30" HistoryIndex="29">
<Position1>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="143" TopLine="126"/>
<Caret Line="122" TopLine="105"/>
</Position1>
<Position2>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="122" TopLine="105"/>
<Caret Line="161" TopLine="144"/>
</Position2>
<Position3>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="161" TopLine="144"/>
<Caret Line="122" TopLine="105"/>
</Position3>
<Position4>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="122" TopLine="105"/>
<Caret Line="120" TopLine="103"/>
</Position4>
<Position5>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="120" TopLine="103"/>
<Caret Line="163" TopLine="146"/>
</Position5>
<Position6>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="163" TopLine="146"/>
<Caret Line="120" TopLine="103"/>
</Position6>
<Position7>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="120" TopLine="103"/>
<Caret Line="86" TopLine="69"/>
</Position7>
<Position8>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="86" TopLine="69"/>
<Caret Line="97" TopLine="80"/>
</Position8>
<Position9>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="97" TopLine="80"/>
<Caret Line="101" TopLine="84"/>
</Position9>
<Position10>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="101" TopLine="84"/>
<Caret Line="102" TopLine="85"/>
</Position10>
<Position11>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="102" TopLine="85"/>
<Caret Line="104" TopLine="87"/>
</Position11>
<Position12>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="104" TopLine="87"/>
<Caret Line="105" TopLine="88"/>
</Position12>
<Position13>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="105" TopLine="88"/>
<Caret Line="108" TopLine="91"/>
</Position13>
<Position14>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="108" TopLine="91"/>
</Position14>
<Position15>
<Filename Value="exsrnmu2.pas"/>
<Caret Line="35" Column="3"/>
</Position14>
<Position15>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="86" TopLine="73"/>
</Position15>
<Position16>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="86" TopLine="73"/>
<Caret Line="97" TopLine="73"/>
</Position16>
<Position17>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="97" TopLine="73"/>
<Caret Line="101" TopLine="73"/>
</Position17>
<Position18>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="101" TopLine="73"/>
<Caret Line="102" TopLine="73"/>
</Position18>
<Position19>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="102" TopLine="73"/>
<Caret Line="104" TopLine="74"/>
</Position19>
<Position20>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="104" TopLine="74"/>
<Caret Line="105" TopLine="75"/>
</Position20>
<Position21>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="105" TopLine="75"/>
<Caret Line="108" TopLine="78"/>
</Position21>
<Position22>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="108" TopLine="78"/>
<Caret Line="102" TopLine="78"/>
</Position22>
<Position23>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="102" TopLine="78"/>
<Caret Line="110" TopLine="80"/>
</Position23>
<Position24>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="110" TopLine="80"/>
<Caret Line="111" TopLine="82"/>
</Position24>
<Position25>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="111" TopLine="82"/>
<Caret Line="84" TopLine="76"/>
</Position25>
<Position26>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="84" TopLine="76"/>
<Caret Line="176" TopLine="151"/>
</Position26>
<Position27>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="176" TopLine="151"/>
<Caret Line="179" TopLine="151"/>
</Position27>
<Position28>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="179" TopLine="151"/>
<Caret Line="86" TopLine="68"/>
</Position28>
<Position29>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="86" TopLine="68"/>
<Caret Line="78" Column="16" TopLine="68"/>
</Position29>
<Position30>
<Filename Value="exsrnmu1.pas"/>
<Caret Line="78" Column="16" TopLine="68"/>
<Filename Value="exsrnmu2.pas"/>
<Caret Line="23" Column="16"/>
</Position30>
</JumpHistory>
</ProjectOptions>
@ -230,15 +230,6 @@
</Linking>
</CompilerOptions>
<Debugging>
<BreakPoints Count="1">
<Item1>
<Kind Value="bpkSource"/>
<WatchScope Value="wpsGlobal"/>
<WatchKind Value="wpkWrite"/>
<Source Value="exsrnmu1.pas"/>
<Line Value="121"/>
</Item1>
</BreakPoints>
<Exceptions Count="2">
<Item1>
<Name Value="ECodetoolError"/>

View File

@ -6,6 +6,8 @@ object Form1: TForm1
HorzScrollBar.Page = 239
VertScrollBar.Page = 185
ActiveControl = Memo1
AutoSize = True
BorderStyle = bsDialog
Caption = 'Serial Number Example'
ClientHeight = 186
ClientWidth = 240
@ -44,11 +46,13 @@ object Form1: TForm1
AnchorSideLeft.Side = asrCenter
AnchorSideTop.Control = Label1
AnchorSideTop.Side = asrBottom
Left = 76
Height = 33
Left = 97
Height = 26
Top = 112
Width = 89
Width = 46
AutoSize = True
BorderSpacing.Top = 6
BorderSpacing.Bottom = 8
Kind = bkClose
TabOrder = 1
end

View File

@ -3,22 +3,23 @@
LazarusResources.Add('TForm1','FORMDATA',[
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3#157#1#6'Height'#3#186#0#3'Top'#3#202#1#5
+'Width'#3#240#0#18'HorzScrollBar.Page'#3#239#0#18'VertScrollBar.Page'#3#185#0
+#13'ActiveControl'#7#5'Memo1'#7'Caption'#6#21'Serial Number Example'#12'Clie'
+'ntHeight'#3#186#0#11'ClientWidth'#3#240#0#8'Position'#7#14'poScreenCenter'
+#10'LCLVersion'#6#7'2.3.0.0'#0#6'TLabel'#6'Label1'#22'AnchorSideLeft.Control'
+#7#5'Owner'#21'AnchorSideTop.Control'#7#5'Memo1'#18'AnchorSideTop.Side'#7#9
+'asrBottom'#4'Left'#2#6#6'Height'#2#15#3'Top'#2'['#5'Width'#2','#9'Alignment'
+#7#8'taCenter'#18'BorderSpacing.Left'#2#6#7'Caption'#6#10'Serial #: '#5'Colo'
+'r'#7#6'clNone'#11'ParentColor'#8#0#0#5'TMemo'#5'Memo1'#22'AnchorSideLeft.Co'
+'ntrol'#7#5'Owner'#21'AnchorSideTop.Control'#7#5'Owner'#4'Left'#2#6#6'Height'
+#2'O'#3'Top'#2#6#5'Width'#3#223#0#20'BorderSpacing.Around'#2#6#13'Lines.Stri'
+'ngs'#1#6':If you can edit this, then your program was allowed to run'#0#10
+'ScrollBars'#7#10'ssVertical'#8'TabOrder'#2#0#0#0#7'TBitBtn'#8'CloseBtn'#22
+'AnchorSideLeft.Control'#7#5'Owner'#19'AnchorSideLeft.Side'#7#9'asrCenter'#21
+'AnchorSideTop.Control'#7#6'Label1'#18'AnchorSideTop.Side'#7#9'asrBottom'#4
+'Left'#2'L'#6'Height'#2'!'#3'Top'#2'p'#5'Width'#2'Y'#17'BorderSpacing.Top'#2
+#6#4'Kind'#7#7'bkClose'#8'TabOrder'#2#1#0#0#19'TOgSerialNumberCode'#19'OgSer'
+'ialNumberCode1'#9'OnChecked'#7#26'OgSerialNumberCode1Checked'#8'OnGetKey'#7
+#25'OgSerialNumberCode1GetKey'#9'OnGetCode'#7#26'OgSerialNumberCode1GetCode'
+#4'Left'#3#128#0#3'Top'#2#16#0#0#0
+#13'ActiveControl'#7#5'Memo1'#8'AutoSize'#9#11'BorderStyle'#7#8'bsDialog'#7
+'Caption'#6#21'Serial Number Example'#12'ClientHeight'#3#186#0#11'ClientWidt'
+'h'#3#240#0#8'Position'#7#14'poScreenCenter'#10'LCLVersion'#6#7'2.3.0.0'#0#6
+'TLabel'#6'Label1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'AnchorSideTop.Co'
+'ntrol'#7#5'Memo1'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2#6#6'Heigh'
+'t'#2#15#3'Top'#2'['#5'Width'#2','#9'Alignment'#7#8'taCenter'#18'BorderSpaci'
+'ng.Left'#2#6#7'Caption'#6#10'Serial #: '#5'Color'#7#6'clNone'#11'ParentColo'
+'r'#8#0#0#5'TMemo'#5'Memo1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'AnchorS'
+'ideTop.Control'#7#5'Owner'#4'Left'#2#6#6'Height'#2'O'#3'Top'#2#6#5'Width'#3
+#223#0#20'BorderSpacing.Around'#2#6#13'Lines.Strings'#1#6':If you can edit t'
+'his, then your program was allowed to run'#0#10'ScrollBars'#7#10'ssVertical'
+#8'TabOrder'#2#0#0#0#7'TBitBtn'#8'CloseBtn'#22'AnchorSideLeft.Control'#7#5'O'
+'wner'#19'AnchorSideLeft.Side'#7#9'asrCenter'#21'AnchorSideTop.Control'#7#6
+'Label1'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2'a'#6'Height'#2#26#3
+'Top'#2'p'#5'Width'#2'.'#8'AutoSize'#9#17'BorderSpacing.Top'#2#6#20'BorderSp'
+'acing.Bottom'#2#8#4'Kind'#7#7'bkClose'#8'TabOrder'#2#1#0#0#19'TOgSerialNumb'
+'erCode'#19'OgSerialNumberCode1'#9'OnChecked'#7#26'OgSerialNumberCode1Checke'
+'d'#8'OnGetKey'#7#25'OgSerialNumberCode1GetKey'#9'OnGetCode'#7#26'OgSerialNu'
+'mberCode1GetCode'#4'Left'#3#128#0#3'Top'#2#16#0#0#0
]);

View File

@ -66,20 +66,27 @@ object SNEntryDlg: TSNEntryDlg
object CodeText: TEdit
AnchorSideLeft.Control = Label2
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = SNText
AnchorSideTop.Side = asrBottom
Left = 44
Height = 23
Top = 62
Width = 185
BorderSpacing.Left = 8
BorderSpacing.Top = 8
TabOrder = 1
end
object OKBtn: TBitBtn
AnchorSideTop.Control = Bevel2
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Bevel1
Left = 28
Height = 33
Top = 94
Width = 89
Left = 71
Height = 26
Top = 104
Width = 46
Anchors = [akTop, akRight]
AutoSize = True
BorderSpacing.Top = 8
Kind = bkOK
ModalResult = 1
TabOrder = 2
@ -87,10 +94,14 @@ object SNEntryDlg: TSNEntryDlg
object CancelBtn: TBitBtn
AnchorSideLeft.Control = Bevel1
AnchorSideLeft.Side = asrBottom
AnchorSideTop.Control = Bevel2
AnchorSideTop.Side = asrBottom
Left = 129
Height = 33
Top = 94
Width = 89
Height = 26
Top = 104
Width = 46
AutoSize = True
BorderSpacing.Top = 8
BorderSpacing.Right = 8
BorderSpacing.Bottom = 8
Kind = bkCancel
@ -101,9 +112,25 @@ object SNEntryDlg: TSNEntryDlg
AnchorSideLeft.Control = Owner
AnchorSideLeft.Side = asrCenter
Left = 117
Height = 32
Top = 89
Height = 24
Top = 104
Width = 12
Shape = bsSpacer
end
object Bevel2: TBevel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = CodeText
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 8
Height = 3
Top = 93
Width = 231
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Left = 8
BorderSpacing.Top = 8
BorderSpacing.Right = 8
Shape = bsTopLine
end
end

View File

@ -22,15 +22,25 @@ LazarusResources.Add('TSNEntryDlg','FORMDATA',[
+'ext'#20'AnchorSideRight.Side'#7#9'asrBottom'#4'Left'#2','#6'Height'#2#23#3
+'Top'#2#31#5'Width'#3#185#0#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#8
+'TabOrder'#2#0#0#0#5'TEdit'#8'CodeText'#22'AnchorSideLeft.Control'#7#6'Label'
+'2'#19'AnchorSideLeft.Side'#7#9'asrBottom'#4'Left'#2','#6'Height'#2#23#3'Top'
+#2'>'#5'Width'#3#185#0#18'BorderSpacing.Left'#2#8#8'TabOrder'#2#1#0#0#7'TBit'
+'Btn'#5'OKBtn'#23'AnchorSideRight.Control'#7#6'Bevel1'#4'Left'#2#28#6'Height'
+#2'!'#3'Top'#2'^'#5'Width'#2'Y'#7'Anchors'#11#5'akTop'#7'akRight'#0#4'Kind'#7
+#4'bkOK'#11'ModalResult'#2#1#8'TabOrder'#2#2#0#0#7'TBitBtn'#9'CancelBtn'#22
+'AnchorSideLeft.Control'#7#6'Bevel1'#19'AnchorSideLeft.Side'#7#9'asrBottom'#4
+'Left'#3#129#0#6'Height'#2'!'#3'Top'#2'^'#5'Width'#2'Y'#19'BorderSpacing.Rig'
+'ht'#2#8#20'BorderSpacing.Bottom'#2#8#4'Kind'#7#8'bkCancel'#7'OnClick'#7#14
+'CancelBtnClick'#8'TabOrder'#2#3#0#0#6'TBevel'#6'Bevel1'#22'AnchorSideLeft.C'
+'ontrol'#7#5'Owner'#19'AnchorSideLeft.Side'#7#9'asrCenter'#4'Left'#2'u'#6'He'
+'ight'#2' '#3'Top'#2'Y'#5'Width'#2#12#5'Shape'#7#8'bsSpacer'#0#0#0
+'2'#19'AnchorSideLeft.Side'#7#9'asrBottom'#21'AnchorSideTop.Control'#7#6'SNT'
+'ext'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2','#6'Height'#2#23#3'To'
+'p'#2'>'#5'Width'#3#185#0#18'BorderSpacing.Left'#2#8#17'BorderSpacing.Top'#2
+#8#8'TabOrder'#2#1#0#0#7'TBitBtn'#5'OKBtn'#21'AnchorSideTop.Control'#7#6'Bev'
+'el2'#18'AnchorSideTop.Side'#7#9'asrBottom'#23'AnchorSideRight.Control'#7#6
+'Bevel1'#4'Left'#2'G'#6'Height'#2#26#3'Top'#2'h'#5'Width'#2'.'#7'Anchors'#11
+#5'akTop'#7'akRight'#0#8'AutoSize'#9#17'BorderSpacing.Top'#2#8#4'Kind'#7#4'b'
+'kOK'#11'ModalResult'#2#1#8'TabOrder'#2#2#0#0#7'TBitBtn'#9'CancelBtn'#22'Anc'
+'horSideLeft.Control'#7#6'Bevel1'#19'AnchorSideLeft.Side'#7#9'asrBottom'#21
+'AnchorSideTop.Control'#7#6'Bevel2'#18'AnchorSideTop.Side'#7#9'asrBottom'#4
+'Left'#3#129#0#6'Height'#2#26#3'Top'#2'h'#5'Width'#2'.'#8'AutoSize'#9#17'Bor'
+'derSpacing.Top'#2#8#19'BorderSpacing.Right'#2#8#20'BorderSpacing.Bottom'#2#8
+#4'Kind'#7#8'bkCancel'#7'OnClick'#7#14'CancelBtnClick'#8'TabOrder'#2#3#0#0#6
+'TBevel'#6'Bevel1'#22'AnchorSideLeft.Control'#7#5'Owner'#19'AnchorSideLeft.S'
+'ide'#7#9'asrCenter'#4'Left'#2'u'#6'Height'#2#24#3'Top'#2'h'#5'Width'#2#12#5
+'Shape'#7#8'bsSpacer'#0#0#6'TBevel'#6'Bevel2'#22'AnchorSideLeft.Control'#7#5
+'Owner'#21'AnchorSideTop.Control'#7#8'CodeText'#18'AnchorSideTop.Side'#7#9'a'
+'srBottom'#23'AnchorSideRight.Control'#7#5'Owner'#20'AnchorSideRight.Side'#7
+#9'asrBottom'#4'Left'#2#8#6'Height'#2#3#3'Top'#2']'#5'Width'#3#231#0#7'Ancho'
+'rs'#11#5'akTop'#6'akLeft'#7'akRight'#0#18'BorderSpacing.Left'#2#8#17'Border'
+'Spacing.Top'#2#8#19'BorderSpacing.Right'#2#8#5'Shape'#7#9'bsTopLine'#0#0#0
]);

View File

@ -13,6 +13,7 @@ type
TSNEntryDlg = class(TForm)
Bevel1: TBevel;
Bevel2: TBevel;
Label1: TLabel;
Label2: TLabel;
SNText: TEdit;