IDEIntf: improved listview editor layout

git-svn-id: trunk@23776 -
This commit is contained in:
mattias 2010-02-24 15:20:00 +00:00
parent 007f3d4686
commit 0b5eb8d4a6
2 changed files with 109 additions and 108 deletions

View File

@ -1,122 +1,46 @@
object ListViewItemsEditorForm: TListViewItemsEditorForm object ListViewItemsEditorForm: TListViewItemsEditorForm
Left = 293 Left = 293
Height = 246 Height = 300
Top = 179 Top = 179
Width = 510 Width = 525
ActiveControl = BtnOK ActiveControl = BtnNewItem
BorderIcons = [biSystemMenu, biHelp] BorderIcons = [biSystemMenu, biHelp]
Caption = 'ListView Items Editor' Caption = 'ListView Items Editor'
ClientHeight = 246 ClientHeight = 300
ClientWidth = 510 ClientWidth = 525
Constraints.MinHeight = 200 Constraints.MinHeight = 200
Constraints.MinWidth = 400 Constraints.MinWidth = 400
OnCreate = FormCreate OnCreate = FormCreate
Position = poScreenCenter Position = poScreenCenter
LCLVersion = '0.9.29' LCLVersion = '0.9.29'
object BtnOK: TBitBtn
AnchorSideRight.Control = BtnCancel
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 180
Height = 26
Top = 214
Width = 75
Anchors = [akRight, akBottom]
AutoSize = True
BorderSpacing.Around = 6
Caption = '&OK'
Constraints.MinHeight = 25
Constraints.MinWidth = 75
Kind = bkOK
ModalResult = 1
NumGlyphs = 0
TabOrder = 0
end
object BtnCancel: TBitBtn
AnchorSideRight.Control = BtnApply
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 261
Height = 26
Top = 214
Width = 81
Anchors = [akRight, akBottom]
AutoSize = True
BorderSpacing.Around = 6
Cancel = True
Caption = 'Cancel'
Constraints.MinHeight = 25
Constraints.MinWidth = 75
Kind = bkCancel
ModalResult = 2
NumGlyphs = 0
TabOrder = 1
end
object BtnApply: TBitBtn
AnchorSideRight.Control = BtnHelp
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 348
Height = 25
Top = 215
Width = 75
Anchors = [akRight, akBottom]
AutoSize = True
BorderSpacing.Around = 6
Caption = '&Apply'
Constraints.MinHeight = 25
Constraints.MinWidth = 75
NumGlyphs = 0
OnClick = btnApplyClick
TabOrder = 2
end
object BtnHelp: TBitBtn
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 429
Height = 26
Top = 214
Width = 75
Anchors = [akRight, akBottom]
AutoSize = True
BorderSpacing.Around = 6
Caption = '&Help'
Constraints.MinHeight = 25
Constraints.MinWidth = 75
Kind = bkHelp
NumGlyphs = 0
TabOrder = 3
end
object GroupBox1: TGroupBox object GroupBox1: TGroupBox
AnchorSideLeft.Control = Owner AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Owner AnchorSideTop.Control = Owner
AnchorSideBottom.Control = BtnOK AnchorSideBottom.Control = BtnPanel
Left = 6 Left = 6
Height = 202 Height = 247
Top = 6 Top = 6
Width = 295 Width = 295
Anchors = [akTop, akLeft, akBottom] Anchors = [akTop, akLeft, akBottom]
BorderSpacing.Around = 6 BorderSpacing.Around = 6
Caption = 'Items' Caption = 'Items'
ClientHeight = 184 ClientHeight = 228
ClientWidth = 291 ClientWidth = 291
TabOrder = 4 TabOrder = 0
object TreeView1: TTreeView object TreeView1: TTreeView
AnchorSideLeft.Control = GroupBox1 AnchorSideLeft.Control = GroupBox1
AnchorSideTop.Control = GroupBox1 AnchorSideTop.Control = GroupBox1
AnchorSideBottom.Control = GroupBox1 AnchorSideBottom.Control = GroupBox1
AnchorSideBottom.Side = asrBottom AnchorSideBottom.Side = asrBottom
Left = 5 Left = 5
Height = 174 Height = 218
Top = 5 Top = 5
Width = 160 Width = 160
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Left = 5 BorderSpacing.Left = 5
BorderSpacing.Top = 5 BorderSpacing.Top = 5
BorderSpacing.Bottom = 5 BorderSpacing.Bottom = 5
DefaultItemHeight = 17 DefaultItemHeight = 19
HideSelection = False HideSelection = False
ReadOnly = True ReadOnly = True
TabOrder = 0 TabOrder = 0
@ -182,24 +106,24 @@ object ListViewItemsEditorForm: TListViewItemsEditorForm
AnchorSideTop.Control = Owner AnchorSideTop.Control = Owner
AnchorSideRight.Control = Owner AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = BtnOK AnchorSideBottom.Control = BtnPanel
Left = 307 Left = 307
Height = 202 Height = 247
Top = 6 Top = 6
Width = 197 Width = 212
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
BorderSpacing.Around = 6 BorderSpacing.Around = 6
Caption = 'Item Properties' Caption = 'Item Properties'
ClientHeight = 184 ClientHeight = 228
ClientWidth = 193 ClientWidth = 208
TabOrder = 5 TabOrder = 1
object LabelCaption: TLabel object LabelCaption: TLabel
AnchorSideLeft.Control = GroupBox2 AnchorSideLeft.Control = GroupBox2
AnchorSideTop.Control = GroupBox2 AnchorSideTop.Control = GroupBox2
Left = 6 Left = 6
Height = 16 Height = 18
Top = 6 Top = 6
Width = 46 Width = 55
BorderSpacing.Left = 6 BorderSpacing.Left = 6
BorderSpacing.Top = 6 BorderSpacing.Top = 6
Caption = 'Caption:' Caption = 'Caption:'
@ -211,9 +135,9 @@ object ListViewItemsEditorForm: TListViewItemsEditorForm
AnchorSideTop.Control = edtText AnchorSideTop.Control = edtText
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 16 Height = 18
Top = 53 Top = 59
Width = 68 Width = 86
BorderSpacing.Top = 6 BorderSpacing.Top = 6
Caption = 'Image Index:' Caption = 'Image Index:'
FocusControl = edtIndexImg FocusControl = edtIndexImg
@ -224,9 +148,9 @@ object ListViewItemsEditorForm: TListViewItemsEditorForm
AnchorSideTop.Control = edtIndexImg AnchorSideTop.Control = edtIndexImg
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 16 Height = 18
Top = 100 Top = 112
Width = 61 Width = 79
BorderSpacing.Top = 6 BorderSpacing.Top = 6
Caption = 'State Index:' Caption = 'State Index:'
FocusControl = edtIndexState FocusControl = edtIndexState
@ -239,9 +163,9 @@ object ListViewItemsEditorForm: TListViewItemsEditorForm
AnchorSideRight.Control = GroupBox2 AnchorSideRight.Control = GroupBox2
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 6 Left = 6
Height = 23 Height = 27
Top = 24 Top = 26
Width = 182 Width = 197
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
BorderSpacing.Top = 2 BorderSpacing.Top = 2
BorderSpacing.Right = 5 BorderSpacing.Right = 5
@ -253,8 +177,8 @@ object ListViewItemsEditorForm: TListViewItemsEditorForm
AnchorSideTop.Control = LabelImageIndex AnchorSideTop.Control = LabelImageIndex
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 23 Height = 27
Top = 71 Top = 79
Width = 48 Width = 48
BorderSpacing.Top = 2 BorderSpacing.Top = 2
OnEditingDone = edtIndexStateEditingDone OnEditingDone = edtIndexStateEditingDone
@ -265,12 +189,88 @@ object ListViewItemsEditorForm: TListViewItemsEditorForm
AnchorSideTop.Control = LabelStateIndex AnchorSideTop.Control = LabelStateIndex
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 6 Left = 6
Height = 23 Height = 27
Top = 118 Top = 132
Width = 48 Width = 48
BorderSpacing.Top = 2 BorderSpacing.Top = 2
OnEditingDone = edtIndexStateEditingDone OnEditingDone = edtIndexStateEditingDone
TabOrder = 2 TabOrder = 2
end end
end end
object BtnPanel: TPanel
Left = 0
Height = 41
Top = 259
Width = 525
Align = alBottom
AutoSize = True
BevelOuter = bvNone
ClientHeight = 41
ClientWidth = 525
TabOrder = 2
object BtnHelp: TBitBtn
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Side = asrBottom
Left = 6
Height = 29
Top = 6
Width = 75
Align = alLeft
AutoSize = True
BorderSpacing.Around = 6
Caption = '&Help'
Constraints.MinWidth = 75
Kind = bkHelp
NumGlyphs = 0
TabOrder = 0
end
object BtnOK: TBitBtn
AnchorSideBottom.Side = asrBottom
Left = 282
Height = 29
Top = 6
Width = 75
Align = alRight
AutoSize = True
BorderSpacing.Around = 6
Caption = '&OK'
Constraints.MinWidth = 75
Kind = bkOK
ModalResult = 1
NumGlyphs = 0
TabOrder = 1
end
object BtnCancel: TBitBtn
AnchorSideBottom.Side = asrBottom
Left = 363
Height = 29
Top = 6
Width = 75
Align = alRight
AutoSize = True
BorderSpacing.Around = 6
Cancel = True
Caption = 'Cancel'
Constraints.MinWidth = 75
Kind = bkCancel
ModalResult = 2
NumGlyphs = 0
TabOrder = 2
end
object BtnApply: TBitBtn
AnchorSideBottom.Side = asrBottom
Left = 444
Height = 29
Top = 6
Width = 75
Align = alRight
AutoSize = True
BorderSpacing.Around = 6
Caption = '&Apply'
Constraints.MinWidth = 75
NumGlyphs = 0
OnClick = btnApplyClick
TabOrder = 3
end
end
end end

View File

@ -56,6 +56,7 @@ type
LabelCaption: TLabel; LabelCaption: TLabel;
LabelImageIndex: TLabel; LabelImageIndex: TLabel;
LabelStateIndex: TLabel; LabelStateIndex: TLabel;
BtnPanel: TPanel;
TreeView1: TTreeView; TreeView1: TTreeView;
procedure BtnNewItemClick(Sender: TObject); procedure BtnNewItemClick(Sender: TObject);
procedure Edit1Change(Sender: TObject); procedure Edit1Change(Sender: TObject);