You've already forked lazarus-ccr
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:
@ -1,2 +1,2 @@
|
||||
[Codes]
|
||||
DaysCode=1CFD160ECF31269CB526
|
||||
DaysCode=6B97CD064372AA3EB826
|
||||
|
@ -58,8 +58,8 @@
|
||||
<UnitName Value="Exdys30u"/>
|
||||
<IsVisibleTab Value="True"/>
|
||||
<EditorIndex Value="1"/>
|
||||
<TopLine Value="108"/>
|
||||
<CursorPos Y="108"/>
|
||||
<TopLine Value="9"/>
|
||||
<CursorPos X="22" Y="35"/>
|
||||
<UsageCount Value="212"/>
|
||||
<Loaded Value="True"/>
|
||||
<LoadedDesigner Value="True"/>
|
||||
@ -97,7 +97,7 @@
|
||||
<UsageCount Value="10"/>
|
||||
</Unit6>
|
||||
</Units>
|
||||
<JumpHistory Count="9" HistoryIndex="8">
|
||||
<JumpHistory Count="10" HistoryIndex="9">
|
||||
<Position1>
|
||||
<Filename Value="exdys30u.pas"/>
|
||||
<Caret Line="130" TopLine="115"/>
|
||||
@ -134,6 +134,10 @@
|
||||
<Filename Value="exdys30u.pas"/>
|
||||
<Caret Line="16" Column="19"/>
|
||||
</Position9>
|
||||
<Position10>
|
||||
<Filename Value="exdys30u.pas"/>
|
||||
<Caret Line="108" TopLine="108"/>
|
||||
</Position10>
|
||||
</JumpHistory>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
|
@ -3,41 +3,43 @@ object Form1: TForm1
|
||||
Height = 158
|
||||
Top = 260
|
||||
Width = 229
|
||||
BorderStyle = bsDialog
|
||||
Caption = 'Form1'
|
||||
ClientHeight = 158
|
||||
ClientWidth = 229
|
||||
OnCreate = FormCreate
|
||||
Position = poScreenCenter
|
||||
LCLVersion = '2.3.0.0'
|
||||
object Label1: TLabel
|
||||
object lblDaysRemaining: TLabel
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideLeft.Side = asrCenter
|
||||
AnchorSideTop.Control = Memo1
|
||||
AnchorSideTop.Control = Info
|
||||
AnchorSideTop.Side = asrBottom
|
||||
Left = 69
|
||||
Height = 15
|
||||
Top = 66
|
||||
Top = 58
|
||||
Width = 91
|
||||
Alignment = taCenter
|
||||
BorderSpacing.Top = 24
|
||||
BorderSpacing.Top = 16
|
||||
Caption = 'Days Remaining: '
|
||||
ParentColor = False
|
||||
end
|
||||
object CloseBtn: TBitBtn
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideLeft.Side = asrCenter
|
||||
AnchorSideTop.Control = Label1
|
||||
AnchorSideTop.Control = Bevel1
|
||||
AnchorSideTop.Side = asrBottom
|
||||
Left = 70
|
||||
Height = 33
|
||||
Top = 105
|
||||
Width = 89
|
||||
BorderSpacing.Top = 24
|
||||
Left = 91
|
||||
Height = 26
|
||||
Top = 104
|
||||
Width = 46
|
||||
AutoSize = True
|
||||
BorderSpacing.Top = 12
|
||||
BorderSpacing.Bottom = 12
|
||||
Kind = bkClose
|
||||
TabOrder = 0
|
||||
end
|
||||
object Memo1: TLabel
|
||||
object Info: TLabel
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideTop.Control = Owner
|
||||
AnchorSideRight.Control = Owner
|
||||
@ -51,6 +53,20 @@ object Form1: TForm1
|
||||
Caption = 'If you can edit this, then your program was allowed to run'
|
||||
WordWrap = True
|
||||
end
|
||||
object Bevel1: TBevel
|
||||
AnchorSideLeft.Control = Info
|
||||
AnchorSideTop.Control = lblDaysRemaining
|
||||
AnchorSideTop.Side = asrBottom
|
||||
AnchorSideRight.Control = Info
|
||||
AnchorSideRight.Side = asrBottom
|
||||
Left = 12
|
||||
Height = 3
|
||||
Top = 89
|
||||
Width = 205
|
||||
Anchors = [akTop, akLeft, akRight]
|
||||
BorderSpacing.Top = 16
|
||||
Shape = bsTopLine
|
||||
end
|
||||
object OgDaysCode1: TOgDaysCode
|
||||
OnChecked = OgDaysCode1Checked
|
||||
OnGetKey = OgDaysCode1GetKey
|
||||
|
@ -2,24 +2,29 @@
|
||||
|
||||
LazarusResources.Add('TForm1','FORMDATA',[
|
||||
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3'D'#1#6'Height'#3#158#0#3'Top'#3#4#1#5'Wid'
|
||||
+'th'#3#229#0#7'Caption'#6#5'Form1'#12'ClientHeight'#3#158#0#11'ClientWidth'#3
|
||||
+#229#0#8'OnCreate'#7#10'FormCreate'#8'Position'#7#14'poScreenCenter'#10'LCLV'
|
||||
+'ersion'#6#7'2.3.0.0'#0#6'TLabel'#6'Label1'#22'AnchorSideLeft.Control'#7#5'O'
|
||||
+'wner'#19'AnchorSideLeft.Side'#7#9'asrCenter'#21'AnchorSideTop.Control'#7#5
|
||||
+'Memo1'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2'E'#6'Height'#2#15#3
|
||||
+'Top'#2'B'#5'Width'#2'['#9'Alignment'#7#8'taCenter'#17'BorderSpacing.Top'#2
|
||||
+#24#7'Caption'#6#16'Days Remaining: '#11'ParentColor'#8#0#0#7'TBitBtn'#8'Clo'
|
||||
+'seBtn'#22'AnchorSideLeft.Control'#7#5'Owner'#19'AnchorSideLeft.Side'#7#9'as'
|
||||
+'rCenter'#21'AnchorSideTop.Control'#7#6'Label1'#18'AnchorSideTop.Side'#7#9'a'
|
||||
+'srBottom'#4'Left'#2'F'#6'Height'#2'!'#3'Top'#2'i'#5'Width'#2'Y'#17'BorderSp'
|
||||
+'acing.Top'#2#24#20'BorderSpacing.Bottom'#2#12#4'Kind'#7#7'bkClose'#8'TabOrd'
|
||||
+'er'#2#0#0#0#6'TLabel'#5'Memo1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'Anc'
|
||||
+'horSideTop.Control'#7#5'Owner'#23'AnchorSideRight.Control'#7#5'Owner'#20'An'
|
||||
+'chorSideRight.Side'#7#9'asrBottom'#4'Left'#2#12#6'Height'#2#30#3'Top'#2#12#5
|
||||
+'Width'#3#205#0#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#20'BorderSpaci'
|
||||
+'ng.Around'#2#12#7'Caption'#6':If you can edit this, then your program was a'
|
||||
+'llowed to run'#8'WordWrap'#9#0#0#11'TOgDaysCode'#11'OgDaysCode1'#9'OnChecke'
|
||||
+'d'#7#18'OgDaysCode1Checked'#8'OnGetKey'#7#17'OgDaysCode1GetKey'#9'OnGetCode'
|
||||
+#7#18'OgDaysCode1GetCode'#12'OnChangeCode'#7#21'OgDaysCode1ChangeCode'#4'Lef'
|
||||
+'t'#2'('#3'Top'#2'X'#0#0#0
|
||||
+'th'#3#229#0#11'BorderStyle'#7#8'bsDialog'#7'Caption'#6#5'Form1'#12'ClientHe'
|
||||
+'ight'#3#158#0#11'ClientWidth'#3#229#0#8'OnCreate'#7#10'FormCreate'#8'Positi'
|
||||
+'on'#7#14'poScreenCenter'#10'LCLVersion'#6#7'2.3.0.0'#0#6'TLabel'#16'lblDays'
|
||||
+'Remaining'#22'AnchorSideLeft.Control'#7#5'Owner'#19'AnchorSideLeft.Side'#7#9
|
||||
+'asrCenter'#21'AnchorSideTop.Control'#7#4'Info'#18'AnchorSideTop.Side'#7#9'a'
|
||||
+'srBottom'#4'Left'#2'E'#6'Height'#2#15#3'Top'#2':'#5'Width'#2'['#9'Alignment'
|
||||
+#7#8'taCenter'#17'BorderSpacing.Top'#2#16#7'Caption'#6#16'Days Remaining: '
|
||||
+#11'ParentColor'#8#0#0#7'TBitBtn'#8'CloseBtn'#22'AnchorSideLeft.Control'#7#5
|
||||
+'Owner'#19'AnchorSideLeft.Side'#7#9'asrCenter'#21'AnchorSideTop.Control'#7#6
|
||||
+'Bevel1'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2'['#6'Height'#2#26#3
|
||||
+'Top'#2'h'#5'Width'#2'.'#8'AutoSize'#9#17'BorderSpacing.Top'#2#12#20'BorderS'
|
||||
+'pacing.Bottom'#2#12#4'Kind'#7#7'bkClose'#8'TabOrder'#2#0#0#0#6'TLabel'#4'In'
|
||||
+'fo'#22'AnchorSideLeft.Control'#7#5'Owner'#21'AnchorSideTop.Control'#7#5'Own'
|
||||
+'er'#23'AnchorSideRight.Control'#7#5'Owner'#20'AnchorSideRight.Side'#7#9'asr'
|
||||
+'Bottom'#4'Left'#2#12#6'Height'#2#30#3'Top'#2#12#5'Width'#3#205#0#7'Anchors'
|
||||
+#11#5'akTop'#6'akLeft'#7'akRight'#0#20'BorderSpacing.Around'#2#12#7'Caption'
|
||||
+#6':If you can edit this, then your program was allowed to run'#8'WordWrap'#9
|
||||
+#0#0#6'TBevel'#6'Bevel1'#22'AnchorSideLeft.Control'#7#4'Info'#21'AnchorSideT'
|
||||
+'op.Control'#7#16'lblDaysRemaining'#18'AnchorSideTop.Side'#7#9'asrBottom'#23
|
||||
+'AnchorSideRight.Control'#7#4'Info'#20'AnchorSideRight.Side'#7#9'asrBottom'#4
|
||||
+'Left'#2#12#6'Height'#2#3#3'Top'#2'Y'#5'Width'#3#205#0#7'Anchors'#11#5'akTop'
|
||||
+#6'akLeft'#7'akRight'#0#17'BorderSpacing.Top'#2#16#5'Shape'#7#9'bsTopLine'#0
|
||||
+#0#11'TOgDaysCode'#11'OgDaysCode1'#9'OnChecked'#7#18'OgDaysCode1Checked'#8'O'
|
||||
+'nGetKey'#7#17'OgDaysCode1GetKey'#9'OnGetCode'#7#18'OgDaysCode1GetCode'#12'O'
|
||||
+'nChangeCode'#7#21'OgDaysCode1ChangeCode'#4'Left'#2'('#3'Top'#2'X'#0#0#0
|
||||
]);
|
||||
|
@ -13,7 +13,7 @@ interface
|
||||
|
||||
uses
|
||||
SysUtils, Classes, Controls,
|
||||
Forms, Dialogs, LResources, StdCtrls, Buttons,
|
||||
Forms, Dialogs, LResources, StdCtrls, Buttons, ExtCtrls,
|
||||
OnGuard, OgUtil, IniFiles;
|
||||
|
||||
const
|
||||
@ -25,10 +25,11 @@ type
|
||||
{ TForm1 }
|
||||
|
||||
TForm1 = class(TForm)
|
||||
Bevel1: TBevel;
|
||||
CloseBtn: TBitBtn;
|
||||
Memo1: TLabel;
|
||||
Info: TLabel;
|
||||
OgDaysCode1: TOgDaysCode;
|
||||
Label1: TLabel;
|
||||
lblDaysRemaining: TLabel;
|
||||
procedure FormCreate(Sender: TObject);
|
||||
procedure OgDaysCode1GetKey(Sender: TObject; var Key: TKey);
|
||||
procedure OgDaysCode1GetCode(Sender: TObject; var Code: TCode);
|
||||
@ -124,7 +125,7 @@ var
|
||||
begin
|
||||
case Status of
|
||||
ogValidCode : begin
|
||||
Label1.Caption := 'Days Remaining: '
|
||||
lblDaysRemaining.Caption := 'Days Remaining: '
|
||||
+ IntToStr(OgDaysCode1.GetValue);
|
||||
Exit;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user