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:
wp_xxyyzz
2017-06-17 12:01:31 +00:00
parent b115d16c3e
commit 92f5e6214d
3 changed files with 12 additions and 5 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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);