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,
|
cthreads,
|
||||||
{$ENDIF}{$ENDIF}
|
{$ENDIF}{$ENDIF}
|
||||||
Interfaces, // this includes the LCL widgetset
|
Interfaces, // this includes the LCL widgetset
|
||||||
Unit1, Forms, lazcolorpalette
|
Unit1, Forms, lclversion, lazcolorpalette
|
||||||
{ you can add units after this };
|
{ you can add units after this };
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
{$IF LCL_FULLVERSION >= 1080000}
|
||||||
Application.Scaled := True;
|
Application.Scaled := True;
|
||||||
|
{$ENDIF}
|
||||||
RequireDerivedFormResource:=True;
|
RequireDerivedFormResource:=True;
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
Application.CreateForm(TMainForm, MainForm);
|
Application.CreateForm(TMainForm, MainForm);
|
||||||
|
@@ -39,11 +39,14 @@ object MainForm: TMainForm
|
|||||||
WordWrap = True
|
WordWrap = True
|
||||||
end
|
end
|
||||||
object BtnEditColor: TButton
|
object BtnEditColor: TButton
|
||||||
|
AnchorSideTop.Control = ColorSample
|
||||||
|
AnchorSideTop.Side = asrCenter
|
||||||
Left = 83
|
Left = 83
|
||||||
Height = 19
|
Height = 25
|
||||||
Hint = 'Edit current color'
|
Hint = 'Edit current color'
|
||||||
Top = 13
|
Top = 15
|
||||||
Width = 64
|
Width = 46
|
||||||
|
AutoSize = True
|
||||||
Caption = 'Edit'
|
Caption = 'Edit'
|
||||||
OnClick = BtnEditColorClick
|
OnClick = BtnEditColorClick
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
@@ -7,13 +7,15 @@ uses
|
|||||||
cthreads,
|
cthreads,
|
||||||
{$ENDIF}{$ENDIF}
|
{$ENDIF}{$ENDIF}
|
||||||
Interfaces, // this includes the LCL widgetset
|
Interfaces, // this includes the LCL widgetset
|
||||||
Forms, Unit1, lazcolorpalette
|
Forms, Unit1, lclversion, lazcolorpalette
|
||||||
{ you can add units after this };
|
{ you can add units after this };
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
{$IF LCL_FULLVERSION >= 1080000}
|
||||||
Application.Scaled := True;
|
Application.Scaled := True;
|
||||||
|
{$ENDIF}
|
||||||
RequireDerivedFormResource:=True;
|
RequireDerivedFormResource:=True;
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
Application.CreateForm(TMainForm, MainForm);
|
Application.CreateForm(TMainForm, MainForm);
|
||||||
|
Reference in New Issue
Block a user