You've already forked lazarus-ccr
colorpalette: Fix compilation of demos for Lazarus versions before 1.8 (LCLScaling)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5945 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -7,13 +7,15 @@ uses
|
||||
cthreads,
|
||||
{$ENDIF}{$ENDIF}
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Unit1, Forms, lazcolorpalette
|
||||
Unit1, Forms, lclversion, lazcolorpalette
|
||||
{ you can add units after this };
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
{$IF LCL_FULLVERSION >= 1080000}
|
||||
Application.Scaled := True;
|
||||
{$ENDIF}
|
||||
RequireDerivedFormResource:=True;
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TMainForm, MainForm);
|
||||
|
@@ -39,11 +39,14 @@ object MainForm: TMainForm
|
||||
WordWrap = True
|
||||
end
|
||||
object BtnEditColor: TButton
|
||||
AnchorSideTop.Control = ColorSample
|
||||
AnchorSideTop.Side = asrCenter
|
||||
Left = 83
|
||||
Height = 19
|
||||
Height = 25
|
||||
Hint = 'Edit current color'
|
||||
Top = 13
|
||||
Width = 64
|
||||
Top = 15
|
||||
Width = 46
|
||||
AutoSize = True
|
||||
Caption = 'Edit'
|
||||
OnClick = BtnEditColorClick
|
||||
TabOrder = 0
|
||||
|
@@ -7,13 +7,15 @@ uses
|
||||
cthreads,
|
||||
{$ENDIF}{$ENDIF}
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Forms, Unit1, lazcolorpalette
|
||||
Forms, Unit1, lclversion, lazcolorpalette
|
||||
{ you can add units after this };
|
||||
|
||||
{$R *.res}
|
||||
|
||||
begin
|
||||
{$IF LCL_FULLVERSION >= 1080000}
|
||||
Application.Scaled := True;
|
||||
{$ENDIF}
|
||||
RequireDerivedFormResource:=True;
|
||||
Application.Initialize;
|
||||
Application.CreateForm(TMainForm, MainForm);
|
||||
|
Reference in New Issue
Block a user