mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 06:41:00 +02:00
projecttemplates: layout: anchors
git-svn-id: trunk@56108 -
This commit is contained in:
parent
123a50aa6f
commit
de1f03dd48
@ -1,41 +1,51 @@
|
|||||||
object ProjectVariablesForm: TProjectVariablesForm
|
object ProjectVariablesForm: TProjectVariablesForm
|
||||||
Left = 505
|
Left = 505
|
||||||
Height = 350
|
Height = 345
|
||||||
Top = 306
|
Top = 306
|
||||||
Width = 584
|
Width = 539
|
||||||
Caption = 'New project from template'
|
Caption = 'New project from template'
|
||||||
ClientHeight = 350
|
ClientHeight = 345
|
||||||
ClientWidth = 584
|
ClientWidth = 539
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnShow = ProjectVariablesFormShow
|
OnShow = ProjectVariablesFormShow
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '1.5'
|
LCLVersion = '1.9.0.0'
|
||||||
object Label1: TLabel
|
object ProjNameLabel: TLabel
|
||||||
|
AnchorSideTop.Control = EProjectName
|
||||||
|
AnchorSideTop.Side = asrCenter
|
||||||
Left = 8
|
Left = 8
|
||||||
Height = 15
|
Height = 13
|
||||||
Top = 16
|
Top = 21
|
||||||
Width = 118
|
Width = 124
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
Caption = '&Name for new project:'
|
Caption = '&Name for new project:'
|
||||||
Layout = tlCenter
|
Layout = tlCenter
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object Label2: TLabel
|
object DEDestDirLabel: TLabel
|
||||||
|
AnchorSideTop.Control = DEDestDir
|
||||||
|
AnchorSideTop.Side = asrCenter
|
||||||
Left = 8
|
Left = 8
|
||||||
Height = 15
|
Height = 13
|
||||||
Top = 48
|
Top = 53
|
||||||
Width = 100
|
Width = 107
|
||||||
Alignment = taRightJustify
|
Alignment = taRightJustify
|
||||||
Caption = 'Create in &directory:'
|
Caption = 'Create in &directory:'
|
||||||
Layout = tlCenter
|
Layout = tlCenter
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object PDescription: TPanel
|
object PDescription: TPanel
|
||||||
Left = 8
|
AnchorSideLeft.Control = Owner
|
||||||
|
AnchorSideTop.Control = DEDestDir
|
||||||
|
AnchorSideTop.Side = asrBottom
|
||||||
|
AnchorSideRight.Control = Owner
|
||||||
|
AnchorSideRight.Side = asrBottom
|
||||||
|
Left = 6
|
||||||
Height = 58
|
Height = 58
|
||||||
Top = 80
|
Top = 77
|
||||||
Width = 570
|
Width = 527
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
|
BorderSpacing.Around = 6
|
||||||
BevelInner = bvRaised
|
BevelInner = bvRaised
|
||||||
BevelOuter = bvLowered
|
BevelOuter = bvLowered
|
||||||
Caption = 'This project contains some additional variables. Please provide values for these variables'
|
Caption = 'This project contains some additional variables. Please provide values for these variables'
|
||||||
@ -43,43 +53,50 @@ object ProjectVariablesForm: TProjectVariablesForm
|
|||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
object SGVariables: TStringGrid
|
object SGVariables: TStringGrid
|
||||||
Left = 10
|
AnchorSideLeft.Control = Owner
|
||||||
Height = 162
|
AnchorSideTop.Control = PDescription
|
||||||
Top = 144
|
AnchorSideTop.Side = asrBottom
|
||||||
Width = 568
|
AnchorSideRight.Control = Owner
|
||||||
|
AnchorSideRight.Side = asrBottom
|
||||||
|
AnchorSideBottom.Control = ButtonPanel1
|
||||||
|
Left = 6
|
||||||
|
Height = 156
|
||||||
|
Top = 141
|
||||||
|
Width = 527
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
AutoFillColumns = True
|
AutoFillColumns = True
|
||||||
|
BorderSpacing.Around = 6
|
||||||
ColCount = 3
|
ColCount = 3
|
||||||
DefaultColWidth = 120
|
DefaultColWidth = 120
|
||||||
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goColSizing, goEditing, goAlwaysShowEditor, goDblClickAutoSize, goSmoothScroll]
|
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goColSizing, goEditing, goAlwaysShowEditor, goDblClickAutoSize, goSmoothScroll]
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
ColWidths = (
|
ColWidths = (
|
||||||
120
|
120
|
||||||
222
|
202
|
||||||
222
|
203
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
object EProjectName: TEdit
|
object EProjectName: TEdit
|
||||||
AnchorSideLeft.Control = Label1
|
AnchorSideLeft.Control = ProjNameLabel
|
||||||
AnchorSideLeft.Side = asrBottom
|
AnchorSideLeft.Side = asrBottom
|
||||||
AnchorSideRight.Control = Owner
|
AnchorSideRight.Control = Owner
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 132
|
Left = 138
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 16
|
Top = 16
|
||||||
Width = 446
|
Width = 395
|
||||||
Anchors = [akTop, akLeft, akRight]
|
Anchors = [akTop, akLeft, akRight]
|
||||||
BorderSpacing.Left = 6
|
BorderSpacing.Left = 6
|
||||||
BorderSpacing.Right = 6
|
BorderSpacing.Right = 6
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
end
|
end
|
||||||
object DEProject: TDirectoryEdit
|
object DEDestDir: TDirectoryEdit
|
||||||
AnchorSideLeft.Control = EProjectName
|
AnchorSideLeft.Control = EProjectName
|
||||||
AnchorSideRight.Side = asrBottom
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 132
|
Left = 138
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 48
|
Top = 48
|
||||||
Width = 444
|
Width = 393
|
||||||
ShowHidden = False
|
ShowHidden = False
|
||||||
ButtonWidth = 23
|
ButtonWidth = 23
|
||||||
NumGlyphs = 1
|
NumGlyphs = 1
|
||||||
@ -89,9 +106,9 @@ object ProjectVariablesForm: TProjectVariablesForm
|
|||||||
end
|
end
|
||||||
object ButtonPanel1: TButtonPanel
|
object ButtonPanel1: TButtonPanel
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 34
|
Height = 36
|
||||||
Top = 310
|
Top = 303
|
||||||
Width = 572
|
Width = 527
|
||||||
OKButton.Name = 'OKButton'
|
OKButton.Name = 'OKButton'
|
||||||
OKButton.DefaultCaption = True
|
OKButton.DefaultCaption = True
|
||||||
OKButton.OnClick = BOKClick
|
OKButton.OnClick = BOKClick
|
||||||
|
@ -6,7 +6,8 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, Forms, ExtCtrls,
|
Classes, Forms, ExtCtrls,
|
||||||
Grids, ProjectTemplates, StdCtrls, EditBtn, ButtonPanel;
|
Grids, StdCtrls, EditBtn, ButtonPanel,
|
||||||
|
ProjectTemplates;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -14,10 +15,10 @@ type
|
|||||||
|
|
||||||
TProjectVariablesForm = class(TForm)
|
TProjectVariablesForm = class(TForm)
|
||||||
ButtonPanel1: TButtonPanel;
|
ButtonPanel1: TButtonPanel;
|
||||||
DEProject: TDirectoryEdit;
|
DEDestDir: TDirectoryEdit;
|
||||||
EProjectName: TEdit;
|
EProjectName: TEdit;
|
||||||
Label1: TLabel;
|
ProjNameLabel: TLabel;
|
||||||
Label2: TLabel;
|
DEDestDirLabel: TLabel;
|
||||||
PDescription: TPanel;
|
PDescription: TPanel;
|
||||||
SGVariables: TStringGrid;
|
SGVariables: TStringGrid;
|
||||||
procedure BOKClick(Sender: TObject);
|
procedure BOKClick(Sender: TObject);
|
||||||
@ -84,8 +85,8 @@ end;
|
|||||||
procedure TProjectVariablesForm.FormCreate(Sender: TObject);
|
procedure TProjectVariablesForm.FormCreate(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
Caption := STitle;
|
Caption := STitle;
|
||||||
Label1.Caption:= SNameforProject;
|
ProjNameLabel.Caption:= SNameforProject;
|
||||||
Label2.Caption:= SCreateinDir;
|
DEDestDirLabel.Caption:= SCreateinDir;
|
||||||
PDescription.Caption:= SThisProject;
|
PDescription.Caption:= SThisProject;
|
||||||
ButtonPanel1.CancelButton.Caption:= SbtnCancel;
|
ButtonPanel1.CancelButton.Caption:= SbtnCancel;
|
||||||
ButtonPanel1.OKButton.Caption:= SbtnOK;
|
ButtonPanel1.OKButton.Caption:= SbtnOK;
|
||||||
@ -121,7 +122,7 @@ end;
|
|||||||
|
|
||||||
function TProjectVariablesForm.GetProjectDir: String;
|
function TProjectVariablesForm.GetProjectDir: String;
|
||||||
begin
|
begin
|
||||||
Result:=DEProject.Text;
|
Result:=DEDestDir.Text;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TProjectVariablesForm.GetProjectName: String;
|
function TProjectVariablesForm.GetProjectName: String;
|
||||||
|
Loading…
Reference in New Issue
Block a user