Hi,

I resized and tidied up the example form for the Grid Semaphore.  Many
of the buttons where to small for the button text.

Patch needs to be applied from the root Lazarus directory.

--
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'
Index: examples/grid_semaphor/example/unit1.lfm
===================================================================
--- examples/grid_semaphor/example/unit1.lfm	(revision 10432)
+++ examples/grid_semaphor/example/unit1.lfm	(working copy)
@@ -1,10 +1,10 @@
 object Form1: TForm1
   Left = 183
-  Height = 416
+  Height = 423
   Top = 115
   Width = 590
   HorzScrollBar.Page = 589
-  VertScrollBar.Page = 415
+  VertScrollBar.Page = 422
   ActiveControl = SemaphorGrid1
   Caption = 'Try SemaphorGrid'
   OnCreate = Form1Create
@@ -12,17 +12,17 @@
     Left = 8
     Height = 25
     Top = 232
-    Width = 112
+    Width = 144
     BorderSpacing.InnerBorder = 4
     Caption = 'Toggle Semaphor'
     OnClick = Button1Click
     TabOrder = 1
   end
   object Button2: TButton
-    Left = 128
+    Left = 155
     Height = 25
     Top = 232
-    Width = 126
+    Width = 163
     BorderSpacing.InnerBorder = 4
     Caption = 'Next Semafore Style'
     OnClick = Button2Click
@@ -32,57 +32,57 @@
     Left = 8
     Height = 25
     Top = 264
-    Width = 114
+    Width = 124
     BorderSpacing.InnerBorder = 4
     Caption = 'Next Alignment'
     OnClick = Button3Click
     TabOrder = 3
   end
   object Button4: TButton
-    Left = 331
+    Left = 464
     Height = 25
-    Top = 264
-    Width = 75
+    Top = 70
+    Width = 111
     BorderSpacing.InnerBorder = 4
     Caption = 'Close'
     OnClick = Button4Click
     TabOrder = 4
   end
   object Button5: TButton
-    Left = 128
+    Left = 464
     Height = 25
-    Top = 264
-    Width = 88
+    Top = 16
+    Width = 111
     BorderSpacing.InnerBorder = 4
     Caption = 'Save to File'
     OnClick = Button5Click
     TabOrder = 5
   end
   object Button6: TButton
-    Left = 227
+    Left = 464
     Height = 25
-    Top = 264
-    Width = 96
+    Top = 43
+    Width = 111
     BorderSpacing.InnerBorder = 4
     Caption = 'Load from File'
     OnClick = Button6Click
     TabOrder = 6
   end
   object Button7: TButton
-    Left = 264
-    Height = 17
+    Left = 327
+    Height = 24
     Top = 232
-    Width = 67
+    Width = 87
     BorderSpacing.InnerBorder = 4
     Caption = 'AutoWidth'
     OnClick = Button7Click
     TabOrder = 7
   end
   object Button8: TButton
-    Left = 334
-    Height = 17
+    Left = 417
+    Height = 24
     Top = 232
-    Width = 72
+    Width = 90
     BorderSpacing.InnerBorder = 4
     Caption = 'AutoHeight'
     OnClick = Button8Click
@@ -90,37 +90,37 @@
   end
   object Button9: TButton
     Left = 176
-    Height = 20
-    Top = 167
-    Width = 75
+    Height = 26
+    Top = 165
+    Width = 100
     BorderSpacing.InnerBorder = 4
     Caption = 'Sort Cols[4]'
     OnClick = Button9Click
     TabOrder = 9
   end
   object RadioButton1: TRadioButton
-    Left = 259
-    Height = 20
-    Top = 164
-    Width = 84
+    Left = 286
+    Height = 24
+    Top = 165
+    Width = 99
     Caption = 'Ascending'
     Checked = True
     State = cbChecked
     TabOrder = 10
   end
   object RadioButton2: TRadioButton
-    Left = 259
-    Height = 20
-    Top = 185
-    Width = 91
+    Left = 286
+    Height = 24
+    Top = 196
+    Width = 109
     Caption = 'Descending'
     TabOrder = 11
   end
   object Button10: TButton
     Left = 8
-    Height = 25
-    Top = 164
-    Width = 142
+    Height = 26
+    Top = 165
+    Width = 144
     BorderSpacing.InnerBorder = 4
     Caption = 'Hide/Show Cols[1]'
     OnClick = Button10Click
@@ -130,7 +130,7 @@
     Left = 8
     Height = 25
     Top = 196
-    Width = 44
+    Width = 47
     BorderSpacing.InnerBorder = 4
     Caption = 'Clear'
     OnClick = Button11Click
@@ -138,45 +138,45 @@
   end
   object CheckBox1: TCheckBox
     Left = 60
-    Height = 20
+    Height = 24
     Top = 196
-    Width = 84
+    Width = 98
     Caption = 'OnlyValue'
     TabOrder = 14
   end
   object Button12: TButton
     Left = 176
-    Height = 18
-    Top = 190
-    Width = 75
+    Height = 23
+    Top = 196
+    Width = 100
     BorderSpacing.InnerBorder = 4
     Caption = 'Sort Cols[1]'
     OnClick = Button12Click
     TabOrder = 15
   end
   object ToggleBox1: TToggleBox
-    Left = 384
-    Height = 13
-    Top = 167
-    Width = 71
+    Left = 429
+    Height = 26
+    Top = 165
+    Width = 102
     Caption = 'UnEditable'
     OnClick = ToggleBox1Click
     TabOrder = 16
   end
   object CheckBox2: TCheckBox
-    Left = 384
-    Height = 20
-    Top = 203
-    Width = 83
+    Left = 428
+    Height = 24
+    Top = 196
+    Width = 98
     Caption = 'Only Float'
     OnClick = CheckBox2Click
     TabOrder = 17
   end
   object Button13: TButton
-    Left = 408
-    Height = 17
+    Left = 510
+    Height = 24
     Top = 232
-    Width = 72
+    Width = 71
     BorderSpacing.InnerBorder = 4
     Caption = 'AutoFit'
     OnClick = Button13Click
@@ -186,7 +186,7 @@
     Left = 8
     Height = 152
     Top = 4
-    Width = 332
+    Width = 350
     Color = clWhite
     ColCount = 5
     DefaultRowHeight = 24
@@ -282,9 +282,9 @@
     )
   end
   object SemaphorGrid2: TSemaphorGrid
-    Height = 100
+    Height = 111
     Top = 305
-    Width = 200
+    Width = 288
     ColCount = 5
     FixedColor = clBtnFace
     GridLineWidth = 0
@@ -299,10 +299,10 @@
     SemaphorShape = ssDisk
   end
   object SemaphorGrid3: TSemaphorGrid
-    Left = 320
-    Height = 100
+    Left = 296
+    Height = 112
     Top = 304
-    Width = 200
+    Width = 279
     ColCount = 5
     FixedColor = clBtnFace
     GridLineWidth = 0
@@ -318,20 +318,20 @@
     SemaphorShape = ssDisk
   end
   object Button14: TButton
-    Left = 411
+    Left = 327
     Height = 25
-    Top = 263
-    Width = 75
+    Top = 264
+    Width = 87
     BorderSpacing.InnerBorder = 4
     Caption = 'Assign'
     OnClick = Button14Click
     TabOrder = 19
   end
   object Button15: TButton
-    Left = 491
+    Left = 417
     Height = 25
-    Top = 263
-    Width = 77
+    Top = 264
+    Width = 114
     BorderSpacing.InnerBorder = 4
     Caption = 'Show Content'
     OnClick = Button15Click
@@ -341,12 +341,12 @@
     Title = 'Save file as'
     FilterIndex = 0
     left = 40
-    top = 352
+    top = 376
   end
   object OpenDialog1: TOpenDialog
     Title = 'Open existing file'
     FilterIndex = 0
     left = 8
-    top = 352
+    top = 376
   end
 end

Reply via email to