You've already forked lazarus-ccr
OnGuard: Replace in all demo projects .lrs resource by .res resource. Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8724 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -57,9 +57,10 @@
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="Exsrnmu1"/>
|
||||
<IsVisibleTab Value="True"/>
|
||||
<EditorIndex Value="1"/>
|
||||
<TopLine Value="107"/>
|
||||
<CursorPos X="23" Y="126"/>
|
||||
<TopLine Value="149"/>
|
||||
<CursorPos Y="167"/>
|
||||
<UsageCount Value="20"/>
|
||||
<Loaded Value="True"/>
|
||||
<LoadedDesigner Value="True"/>
|
||||
@ -71,9 +72,9 @@
|
||||
<HasResources Value="True"/>
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="Exsrnmu2"/>
|
||||
<IsVisibleTab Value="True"/>
|
||||
<EditorIndex Value="2"/>
|
||||
<CursorPos X="16" Y="24"/>
|
||||
<TopLine Value="6"/>
|
||||
<CursorPos X="30" Y="28"/>
|
||||
<UsageCount Value="20"/>
|
||||
<Loaded Value="True"/>
|
||||
<LoadedDesigner Value="True"/>
|
||||
@ -82,123 +83,123 @@
|
||||
<JumpHistory Count="30" HistoryIndex="29">
|
||||
<Position1>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="122" TopLine="105"/>
|
||||
<Caret Line="97" TopLine="80"/>
|
||||
</Position1>
|
||||
<Position2>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="161" TopLine="144"/>
|
||||
<Caret Line="101" TopLine="84"/>
|
||||
</Position2>
|
||||
<Position3>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="122" TopLine="105"/>
|
||||
<Caret Line="102" TopLine="85"/>
|
||||
</Position3>
|
||||
<Position4>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="120" TopLine="103"/>
|
||||
<Caret Line="104" TopLine="87"/>
|
||||
</Position4>
|
||||
<Position5>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="163" TopLine="146"/>
|
||||
<Caret Line="105" TopLine="88"/>
|
||||
</Position5>
|
||||
<Position6>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="120" TopLine="103"/>
|
||||
<Caret Line="108" TopLine="91"/>
|
||||
</Position6>
|
||||
<Position7>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="86" TopLine="69"/>
|
||||
<Filename Value="exsrnmu2.pas"/>
|
||||
<Caret Line="35" Column="3"/>
|
||||
</Position7>
|
||||
<Position8>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="97" TopLine="80"/>
|
||||
<Caret Line="86" TopLine="73"/>
|
||||
</Position8>
|
||||
<Position9>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="101" TopLine="84"/>
|
||||
<Caret Line="97" TopLine="73"/>
|
||||
</Position9>
|
||||
<Position10>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="102" TopLine="85"/>
|
||||
<Caret Line="101" TopLine="73"/>
|
||||
</Position10>
|
||||
<Position11>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="104" TopLine="87"/>
|
||||
<Caret Line="102" TopLine="73"/>
|
||||
</Position11>
|
||||
<Position12>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="105" TopLine="88"/>
|
||||
<Caret Line="104" TopLine="74"/>
|
||||
</Position12>
|
||||
<Position13>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="108" TopLine="91"/>
|
||||
<Caret Line="105" TopLine="75"/>
|
||||
</Position13>
|
||||
<Position14>
|
||||
<Filename Value="exsrnmu2.pas"/>
|
||||
<Caret Line="35" Column="3"/>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="108" TopLine="78"/>
|
||||
</Position14>
|
||||
<Position15>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="86" TopLine="73"/>
|
||||
<Caret Line="102" TopLine="78"/>
|
||||
</Position15>
|
||||
<Position16>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="97" TopLine="73"/>
|
||||
<Caret Line="110" TopLine="80"/>
|
||||
</Position16>
|
||||
<Position17>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="101" TopLine="73"/>
|
||||
<Caret Line="111" TopLine="82"/>
|
||||
</Position17>
|
||||
<Position18>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="102" TopLine="73"/>
|
||||
<Caret Line="84" TopLine="76"/>
|
||||
</Position18>
|
||||
<Position19>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="104" TopLine="74"/>
|
||||
<Caret Line="176" TopLine="151"/>
|
||||
</Position19>
|
||||
<Position20>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="105" TopLine="75"/>
|
||||
<Caret Line="179" TopLine="151"/>
|
||||
</Position20>
|
||||
<Position21>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="108" TopLine="78"/>
|
||||
<Caret Line="86" TopLine="68"/>
|
||||
</Position21>
|
||||
<Position22>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="102" TopLine="78"/>
|
||||
<Caret Line="78" Column="16" TopLine="68"/>
|
||||
</Position22>
|
||||
<Position23>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="110" TopLine="80"/>
|
||||
<Filename Value="exsrnmu2.pas"/>
|
||||
<Caret Line="23" Column="16"/>
|
||||
</Position23>
|
||||
<Position24>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="111" TopLine="82"/>
|
||||
<Caret Line="120" Column="44" TopLine="107"/>
|
||||
</Position24>
|
||||
<Position25>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="84" TopLine="76"/>
|
||||
<Caret Line="210" TopLine="175"/>
|
||||
</Position25>
|
||||
<Position26>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="176" TopLine="151"/>
|
||||
<Caret Line="136" TopLine="100"/>
|
||||
</Position26>
|
||||
<Position27>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="179" TopLine="151"/>
|
||||
<Caret Line="75" TopLine="58"/>
|
||||
</Position27>
|
||||
<Position28>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="86" TopLine="68"/>
|
||||
<Caret Line="79" TopLine="61"/>
|
||||
</Position28>
|
||||
<Position29>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="78" Column="16" TopLine="68"/>
|
||||
<Caret Line="132" Column="26" TopLine="115"/>
|
||||
</Position29>
|
||||
<Position30>
|
||||
<Filename Value="exsrnmu2.pas"/>
|
||||
<Caret Line="23" Column="16"/>
|
||||
<Filename Value="exsrnmu1.pas"/>
|
||||
<Caret Line="168" Column="5" TopLine="149"/>
|
||||
</Position30>
|
||||
</JumpHistory>
|
||||
</ProjectOptions>
|
||||
|
@ -1,25 +0,0 @@
|
||||
{ This is an automatically generated lazarus resource file }
|
||||
|
||||
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'#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
|
||||
]);
|
@ -22,11 +22,8 @@ unit Exsrnmu1;
|
||||
interface
|
||||
|
||||
uses
|
||||
SysUtils,Classes,Controls,
|
||||
Forms, Dialogs, OnGuard, StdCtrls, Buttons,LResources,
|
||||
|
||||
OgUtil,
|
||||
IniFiles;
|
||||
SysUtils, Classes, Controls, Forms, Dialogs, OnGuard, StdCtrls, Buttons, IniFiles,
|
||||
OgUtil;
|
||||
|
||||
const
|
||||
CKey : TKey = ($E5,$8F,$84,$D6,$92,$C9,$A4,$D8,
|
||||
@ -62,7 +59,7 @@ var
|
||||
|
||||
implementation
|
||||
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
uses
|
||||
Exsrnmu2;
|
||||
@ -76,11 +73,9 @@ end;
|
||||
|
||||
{=======================================================================}
|
||||
|
||||
|
||||
procedure TForm1.OgSerialNumberCode1GetCode(Sender: TObject; var Code: TCode);
|
||||
var
|
||||
S1 : string;
|
||||
L : integer;
|
||||
begin
|
||||
{force the INI file to be in the same directory as the application}
|
||||
TheDir := ExtractFilePath(ParamStr(0));
|
||||
@ -134,6 +129,7 @@ begin
|
||||
end;
|
||||
|
||||
{Check that Release Code was entered correctly}
|
||||
TC := Default(TCode);
|
||||
HexToBuffer(SNEntryDlg.CodeText.Text, TC, SizeOf(TCode));
|
||||
if not (IsSerialNumberCodeValid(CKey, TC)) then begin
|
||||
S := 'Release code not entered correctly';
|
||||
@ -167,11 +163,8 @@ end;
|
||||
procedure TForm1.OgSerialNumberCode1Checked(Sender: TObject;
|
||||
Status: TCodeStatus);
|
||||
var
|
||||
S,
|
||||
C1,
|
||||
C2 : string;
|
||||
TC : TCode;
|
||||
LI : longint;
|
||||
S: String;
|
||||
LI: longint;
|
||||
begin
|
||||
case Status of
|
||||
ogValidCode : begin
|
||||
@ -207,8 +200,5 @@ begin
|
||||
Application.Terminate;
|
||||
end;
|
||||
|
||||
initialization
|
||||
{$i exsrnmu1.lrs}
|
||||
|
||||
end.
|
||||
|
||||
|
@ -1,46 +0,0 @@
|
||||
{ This is an automatically generated lazarus resource file }
|
||||
|
||||
LazarusResources.Add('TSNEntryDlg','FORMDATA',[
|
||||
'TPF0'#11'TSNEntryDlg'#10'SNEntryDlg'#4'Left'#3#147#1#6'Height'#3#166#0#3'Top'
|
||||
+#3#26#1#5'Width'#3#247#0#18'HorzScrollBar.Page'#3#246#0#18'VertScrollBar.Pag'
|
||||
+'e'#3#165#0#13'ActiveControl'#7#6'SNText'#8'AutoSize'#9#7'Caption'#6#13'Seri'
|
||||
+'al Number'#12'ClientHeight'#3#166#0#11'ClientWidth'#3#247#0#10'LCLVersion'#6
|
||||
+#7'2.3.0.0'#0#6'TLabel'#6'Label1'#22'AnchorSideLeft.Control'#7#5'Owner'#21'A'
|
||||
+'nchorSideTop.Control'#7#6'SNText'#18'AnchorSideTop.Side'#7#9'asrCenter'#4'L'
|
||||
+'eft'#2#8#6'Height'#2#15#3'Top'#2'#'#5'Width'#2#15#18'BorderSpacing.Left'#2#8
|
||||
+#7'Caption'#6#2'SN'#5'Color'#7#6'clNone'#11'ParentColor'#8#0#0#6'TLabel'#6'L'
|
||||
+'abel2'#22'AnchorSideLeft.Control'#7#5'Owner'#21'AnchorSideTop.Control'#7#8
|
||||
+'CodeText'#18'AnchorSideTop.Side'#7#9'asrCenter'#4'Left'#2#8#6'Height'#2#15#3
|
||||
+'Top'#2'B'#5'Width'#2#28#18'BorderSpacing.Left'#2#8#7'Caption'#6#4'Code'#5'C'
|
||||
+'olor'#7#6'clNone'#11'ParentColor'#8#0#0#6'TLabel'#6'Label3'#22'AnchorSideLe'
|
||||
+'ft.Control'#7#5'Owner'#19'AnchorSideLeft.Side'#7#9'asrCenter'#21'AnchorSide'
|
||||
+'Top.Control'#7#5'Owner'#4'Left'#2'"'#6'Height'#2#15#3'Top'#2#8#5'Width'#3
|
||||
+#178#0#20'BorderSpacing.Around'#2#8#7'Caption'#6'!Call your Vendor NOW to re'
|
||||
+'gister!'#5'Color'#7#6'clNone'#11'ParentColor'#8#0#0#5'TEdit'#6'SNText'#22'A'
|
||||
+'nchorSideLeft.Control'#7#8'CodeText'#21'AnchorSideTop.Control'#7#6'Label3'
|
||||
+#18'AnchorSideTop.Side'#7#9'asrBottom'#23'AnchorSideRight.Control'#7#8'CodeT'
|
||||
+'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'#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
|
||||
]);
|
@ -4,8 +4,7 @@ unit Exsrnmu2;
|
||||
interface
|
||||
|
||||
uses
|
||||
SysUtils,Classes,Controls,
|
||||
Forms, Dialogs, StdCtrls, Buttons,LResources, ExtCtrls;
|
||||
SysUtils, Classes, Controls, Forms, Dialogs, StdCtrls, Buttons, ExtCtrls;
|
||||
|
||||
type
|
||||
|
||||
@ -33,12 +32,11 @@ var
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
procedure TSNEntryDlg.CancelBtnClick(Sender: TObject);
|
||||
begin
|
||||
Close;
|
||||
end;
|
||||
|
||||
initialization
|
||||
{$i exsrnmu2.lrs}
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user