mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 22:00:20 +02:00
JCF2: improved 'Preprocessor' page layout
git-svn-id: trunk@24935 -
This commit is contained in:
parent
6b4ddf6139
commit
4b074a1cc2
@ -4,47 +4,76 @@ inherited fPreProcessor: TfPreProcessor
|
||||
ClientHeight = 282
|
||||
ClientWidth = 409
|
||||
OnResize = FrameResize
|
||||
TabOrder = 0
|
||||
DesignLeft = 627
|
||||
DesignTop = 292
|
||||
object lblSymbols: TLabel[0]
|
||||
Left = 8
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideTop.Control = cbEnable
|
||||
AnchorSideTop.Side = asrBottom
|
||||
Left = 6
|
||||
Height = 14
|
||||
Top = 30
|
||||
Top = 29
|
||||
Width = 210
|
||||
BorderSpacing.Around = 6
|
||||
Caption = 'Symbols defined for conditional compilation:'
|
||||
ParentColor = False
|
||||
end
|
||||
object lblCompilerOptions: TLabel[1]
|
||||
Left = 8
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideTop.Control = mSymbols
|
||||
AnchorSideTop.Side = asrBottom
|
||||
Left = 6
|
||||
Height = 14
|
||||
Top = 138
|
||||
Top = 140
|
||||
Width = 250
|
||||
BorderSpacing.Top = 6
|
||||
BorderSpacing.Around = 6
|
||||
Caption = 'Compiler options defined for conditional compilation:'
|
||||
ParentColor = False
|
||||
end
|
||||
object mSymbols: TMemo[2]
|
||||
Left = 8
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideTop.Control = lblSymbols
|
||||
AnchorSideTop.Side = asrBottom
|
||||
AnchorSideRight.Control = Owner
|
||||
AnchorSideRight.Side = asrBottom
|
||||
Left = 6
|
||||
Height = 79
|
||||
Top = 50
|
||||
Width = 364
|
||||
Top = 49
|
||||
Width = 397
|
||||
Anchors = [akTop, akLeft, akRight]
|
||||
BorderSpacing.Around = 6
|
||||
ScrollBars = ssVertical
|
||||
TabOrder = 1
|
||||
end
|
||||
object cbEnable: TCheckBox[3]
|
||||
Left = 8
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideTop.Control = Owner
|
||||
Left = 6
|
||||
Height = 17
|
||||
Top = 6
|
||||
Width = 154
|
||||
BorderSpacing.Around = 6
|
||||
Caption = 'Enable preprocessor parsing'
|
||||
Checked = True
|
||||
State = cbChecked
|
||||
TabOrder = 0
|
||||
end
|
||||
object mOptions: TMemo[4]
|
||||
Left = 8
|
||||
Height = 79
|
||||
Top = 158
|
||||
Width = 364
|
||||
AnchorSideLeft.Control = Owner
|
||||
AnchorSideTop.Control = lblCompilerOptions
|
||||
AnchorSideTop.Side = asrBottom
|
||||
AnchorSideRight.Control = Owner
|
||||
AnchorSideRight.Side = asrBottom
|
||||
AnchorSideBottom.Control = Owner
|
||||
AnchorSideBottom.Side = asrBottom
|
||||
Left = 6
|
||||
Height = 116
|
||||
Top = 160
|
||||
Width = 397
|
||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||
BorderSpacing.Around = 6
|
||||
ScrollBars = ssVertical
|
||||
TabOrder = 2
|
||||
end
|
||||
|
@ -107,24 +107,8 @@ begin
|
||||
end;
|
||||
|
||||
procedure TfPreProcessor.FrameResize(Sender: TObject);
|
||||
var
|
||||
liClientHeight: integer;
|
||||
begin
|
||||
liClientHeight := ClientHeight -
|
||||
(cbEnable.Top + cbEnable.Height +
|
||||
lblCompilerOptions.Height + lblSymbols.Height +
|
||||
(GUI_PAD * 3));
|
||||
|
||||
mSymbols.Height := (liClientHeight div 2);
|
||||
mSymbols.Left := 0;
|
||||
mSymbols.Width := ClientWidth;
|
||||
|
||||
lblCompilerOptions.Top := mSymbols.Top + mSymbols.Height + GUI_PAD;
|
||||
mOptions.Top := lblCompilerOptions.Top + lblCompilerOptions.Height + GUI_PAD;
|
||||
mOptions.Height := ClientHeight - mOptions.Top;
|
||||
mOptions.Left := 0;
|
||||
mOptions.Width := ClientWidth;
|
||||
|
||||
mSymbols.Height := (mSymbols.Height+mOptions.Height) div 2;
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
Loading…
Reference in New Issue
Block a user