Bläddra i källkod

Fix layout to be like wizard and messagebox designer.

Martijn Laan 1 år sedan
förälder
incheckning
578770a095
2 ändrade filer med 36 tillägg och 43 borttagningar
  1. 35 43
      Projects/CompFileListWin.dfm
  2. 1 0
      Projects/CompFileListWin.pas

+ 35 - 43
Projects/CompFileListWin.dfm

@@ -3,8 +3,8 @@ object CFLWForm: TCFLWForm
   Top = 375
   Top = 375
   BorderStyle = bsDialog
   BorderStyle = bsDialog
   Caption = 'Insert File List Field'
   Caption = 'Insert File List Field'
-  ClientHeight = 458
-  ClientWidth = 636
+  ClientHeight = 403
+  ClientWidth = 575
   Color = clBtnFace
   Color = clBtnFace
   Font.Charset = DEFAULT_CHARSET
   Font.Charset = DEFAULT_CHARSET
   Font.Color = clWindowText
   Font.Color = clWindowText
@@ -14,25 +14,26 @@ object CFLWForm: TCFLWForm
   Position = poDesktopCenter
   Position = poDesktopCenter
   OnCreate = FormCreate
   OnCreate = FormCreate
   OnDestroy = FormDestroy
   OnDestroy = FormDestroy
-  DesignSize = (
-    636
-    458)
   TextHeight = 15
   TextHeight = 15
   object Panel1: TPanel
   object Panel1: TPanel
     Left = 0
     Left = 0
-    Top = 408
-    Width = 636
-    Height = 50
+    Top = 361
+    Width = 575
+    Height = 42
     Align = alBottom
     Align = alBottom
+    BevelOuter = bvNone
     TabOrder = 0
     TabOrder = 0
-    ExplicitTop = 399
-    ExplicitWidth = 630
-    DesignSize = (
-      636
-      50)
+    object Bevel1: TBevel
+      Left = 0
+      Top = 0
+      Width = 575
+      Height = 3
+      Align = alTop
+      Shape = bsBottomLine
+    end
     object OkButton: TButton
     object OkButton: TButton
-      Left = 408
-      Top = 16
+      Left = 406
+      Top = 11
       Width = 75
       Width = 75
       Height = 25
       Height = 25
       Caption = 'Insert'
       Caption = 'Insert'
@@ -40,69 +41,61 @@ object CFLWForm: TCFLWForm
       TabOrder = 0
       TabOrder = 0
     end
     end
     object CancelButton: TButton
     object CancelButton: TButton
-      Left = 503
-      Top = 16
+      Left = 490
+      Top = 11
       Width = 75
       Width = 75
       Height = 25
       Height = 25
-      Anchors = [akRight, akBottom]
       Cancel = True
       Cancel = True
       Caption = 'Cancel'
       Caption = 'Cancel'
       ModalResult = 2
       ModalResult = 2
       TabOrder = 1
       TabOrder = 1
-      ExplicitLeft = 497
     end
     end
   end
   end
   object AppFilesEditButton: TButton
   object AppFilesEditButton: TButton
-    Left = 514
-    Top = 152
+    Left = 476
+    Top = 107
     Width = 89
     Width = 89
     Height = 23
     Height = 23
-    Anchors = [akTop, akRight]
     Caption = '&Parameters...'
     Caption = '&Parameters...'
     TabOrder = 1
     TabOrder = 1
   end
   end
   object AppFilesRemoveButton: TButton
   object AppFilesRemoveButton: TButton
-    Left = 514
-    Top = 180
+    Left = 476
+    Top = 135
     Width = 89
     Width = 89
     Height = 23
     Height = 23
-    Anchors = [akTop, akRight]
     Caption = 'Remo&ve'
     Caption = 'Remo&ve'
     TabOrder = 2
     TabOrder = 2
   end
   end
   object AppFilesAddDirButton: TButton
   object AppFilesAddDirButton: TButton
-    Left = 514
-    Top = 124
+    Left = 476
+    Top = 79
     Width = 89
     Width = 89
     Height = 23
     Height = 23
-    Anchors = [akTop, akRight]
     Caption = 'Add fol&der...'
     Caption = 'Add fol&der...'
     TabOrder = 3
     TabOrder = 3
   end
   end
   object AppFilesAddButton: TButton
   object AppFilesAddButton: TButton
-    Left = 514
-    Top = 96
+    Left = 476
+    Top = 51
     Width = 89
     Width = 89
     Height = 23
     Height = 23
-    Anchors = [akTop, akRight]
     Caption = '&Add file(s)...'
     Caption = '&Add file(s)...'
     TabOrder = 4
     TabOrder = 4
   end
   end
   object AppFilesListBox: TDropListBox
   object AppFilesListBox: TDropListBox
-    Left = 20
-    Top = 96
-    Width = 457
+    Left = 8
+    Top = 52
+    Width = 453
     Height = 297
     Height = 297
-    Anchors = [akLeft, akTop, akRight, akBottom]
     ItemHeight = 15
     ItemHeight = 15
     TabOrder = 5
     TabOrder = 5
   end
   end
   object AppFilesLabel: TNewStaticText
   object AppFilesLabel: TNewStaticText
-    Left = 20
-    Top = 62
-    Width = 415
+    Left = 8
+    Top = 32
+    Width = 411
     Height = 16
     Height = 16
-    Anchors = [akLeft, akTop, akRight]
     AutoSize = False
     AutoSize = False
     Caption = '&Files:'
     Caption = '&Files:'
     FocusControl = AppFilesListBox
     FocusControl = AppFilesListBox
@@ -110,11 +103,10 @@ object CFLWForm: TCFLWForm
     WordWrap = True
     WordWrap = True
   end
   end
   object NotCreateAppDirCheck: TCheckBox
   object NotCreateAppDirCheck: TCheckBox
-    Left = 20
-    Top = 24
-    Width = 257
+    Left = 8
+    Top = 8
+    Width = 253
     Height = 17
     Height = 17
-    Anchors = [akLeft, akTop, akRight]
     Caption = '&Script has CreateAppDir=no'
     Caption = '&Script has CreateAppDir=no'
     TabOrder = 7
     TabOrder = 7
   end
   end

+ 1 - 0
Projects/CompFileListWin.pas

@@ -18,6 +18,7 @@ type
     AppFilesListBox: TDropListBox;
     AppFilesListBox: TDropListBox;
     AppFilesLabel: TNewStaticText;
     AppFilesLabel: TNewStaticText;
     NotCreateAppDirCheck: TCheckBox;
     NotCreateAppDirCheck: TCheckBox;
+    Bevel1: TBevel;
     procedure FormCreate(Sender: TObject);
     procedure FormCreate(Sender: TObject);
     procedure FormDestroy(Sender: TObject);
     procedure FormDestroy(Sender: TObject);
   private
   private