View Issue Details

IDProjectCategoryView StatusLast Update
0039281LazarusPackagespublic2021-07-22 13:05
ReporterCudaText man Assigned ToJuha Manninen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformUbuntu 20.x 
Product Version2.1 (SVN) 
Summary0039281: LazFreetype demo UI layout
DescriptionAs you can see in the screenshot,
a) trackbar is partly visible on the bottom
b) 3 radio-buttons in the lower-right are overlapping
TagsNo tags attached.
Fixed in Revisionr65494
LazTarget-
WidgetsetGTK 2
Attached Files

Activities

CudaText man

2021-07-22 10:07

reporter  

CudaText man

2021-07-22 10:08

reporter   ~0131994

Last edited: 2021-07-22 10:08

View 3 revisions

I got mistakes in the title - please correct it. "lazfreetype demo UI layout".

CudaText man

2021-07-22 11:32

reporter   ~0131997

The patch adds Anchors to controls.
form1.diff (4,654 bytes)   
Index: examples/lazfreetype/mainform.lfm
===================================================================
--- examples/lazfreetype/mainform.lfm	(revision 65368)
+++ examples/lazfreetype/mainform.lfm	(working copy)
@@ -1,12 +1,12 @@
 object Form1: TForm1
   Left = 362
-  Height = 336
+  Height = 367
   Top = 172
-  Width = 624
+  Width = 676
   Align = alBottom
   Caption = 'Test LazFreeType'
-  ClientHeight = 336
-  ClientWidth = 624
+  ClientHeight = 367
+  ClientWidth = 676
   KeyPreview = True
   OnCreate = FormCreate
   OnDestroy = FormDestroy
@@ -14,22 +14,27 @@
   OnPaint = FormPaint
   OnShow = FormShow
   Position = poDefault
-  LCLVersion = '2.1.0.0'
+  LCLVersion = '2.3.0.0'
   object Panel_Option: TPanel
     Left = 0
-    Height = 40
-    Top = 296
-    Width = 624
+    Height = 56
+    Top = 311
+    Width = 676
     Align = alBottom
-    ClientHeight = 40
-    ClientWidth = 624
+    ClientHeight = 56
+    ClientWidth = 676
     ParentColor = False
     TabOrder = 0
     object TrackBar_Size: TTrackBar
-      Left = 96
-      Height = 25
-      Top = 8
-      Width = 280
+      AnchorSideLeft.Control = SpinEdit_Zoom
+      AnchorSideLeft.Side = asrBottom
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
+      AnchorSideRight.Control = LFontSize
+      Left = 100
+      Height = 46
+      Top = 5
+      Width = 292
       Frequency = 0
       Max = 300
       Min = 1
@@ -36,32 +41,40 @@
       OnChange = TrackBar_SizeChange
       Position = 30
       Anchors = [akTop, akLeft, akRight]
+      BorderSpacing.Left = 4
+      BorderSpacing.Right = 4
       TabOrder = 0
     end
     object LFontSize: TLabel
-      Left = 376
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
+      AnchorSideRight.Control = LAngle
+      Left = 396
       Height = 16
-      Top = 11
+      Top = 20
       Width = 51
       Alignment = taCenter
       Anchors = [akTop, akRight]
       AutoSize = False
+      BorderSpacing.Right = 4
       Caption = 'LFontSize'
-      ParentColor = False
     end
     object Label1: TLabel
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
       Left = 6
-      Height = 15
-      Top = 12
-      Width = 32
+      Height = 17
+      Top = 20
+      Width = 39
       Caption = 'Zoom'
-      ParentColor = False
     end
     object SpinEdit_Zoom: TSpinEdit
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
       Left = 48
-      Height = 23
-      Top = 8
-      Width = 40
+      Height = 26
+      Top = 15
+      Width = 48
       MaxValue = 9
       MinValue = 1
       OnChange = SpinEdit_ZoomChange
@@ -69,40 +82,56 @@
       Value = 1
     end
     object LAngle: TLabel
-      Left = 440
-      Height = 15
-      Top = 11
-      Width = 11
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
+      AnchorSideRight.Control = CheckBox_SingleLine
+      Left = 451
+      Height = 17
+      Top = 20
+      Width = 15
       Anchors = [akTop, akRight]
+      BorderSpacing.Right = 4
       Caption = '0ยบ'
-      ParentColor = False
     end
     object CheckBox_SingleLine: TRadioButton
-      Left = 472
-      Height = 19
-      Top = 12
-      Width = 51
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
+      AnchorSideRight.Control = CheckBox_Para
+      Left = 470
+      Height = 24
+      Top = 16
+      Width = 65
       Anchors = [akTop, akRight]
+      BorderSpacing.Right = 4
       Caption = '1 Line'
       OnChange = CheckBox_SingleLineChange
       TabOrder = 2
     end
     object CheckBox_Rot: TRadioButton
-      Left = 576
-      Height = 19
-      Top = 12
-      Width = 38
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
+      AnchorSideRight.Control = Panel_Option
+      AnchorSideRight.Side = asrBottom
+      Left = 599
+      Height = 24
+      Top = 16
+      Width = 72
       Anchors = [akTop, akRight]
-      Caption = 'Rot'
+      BorderSpacing.Right = 4
+      Caption = 'Rotate'
       OnChange = CheckBox_SingleLineChange
       TabOrder = 3
     end
     object CheckBox_Para: TRadioButton
-      Left = 528
-      Height = 19
-      Top = 12
-      Width = 43
+      AnchorSideTop.Control = Panel_Option
+      AnchorSideTop.Side = asrCenter
+      AnchorSideRight.Control = CheckBox_Rot
+      Left = 539
+      Height = 24
+      Top = 16
+      Width = 56
       Anchors = [akTop, akRight]
+      BorderSpacing.Right = 4
       Caption = 'Rect'
       Checked = True
       OnChange = CheckBox_SingleLineChange
form1.diff (4,654 bytes)   

Juha Manninen

2021-07-22 12:16

developer   ~0131998

Applied, thanks.

Issue History

Date Modified Username Field Change
2021-07-22 10:07 CudaText man New Issue
2021-07-22 10:07 CudaText man File Added: Screenshot from 2021-07-22 13-04-54.png
2021-07-22 10:08 CudaText man Note Added: 0131994
2021-07-22 10:08 CudaText man Note Edited: 0131994 View Revisions
2021-07-22 10:08 CudaText man Note Edited: 0131994 View Revisions
2021-07-22 11:32 CudaText man Note Added: 0131997
2021-07-22 11:32 CudaText man File Added: form1.diff
2021-07-22 11:54 Juha Manninen Summary examples/laztreetydemo demo UI layout => LazFreetype demo UI layout
2021-07-22 11:54 Juha Manninen LazTarget => -
2021-07-22 11:54 Juha Manninen Widgetset GTK 2 => GTK 2
2021-07-22 12:07 Juha Manninen Assigned To => Juha Manninen
2021-07-22 12:07 Juha Manninen Status new => assigned
2021-07-22 12:16 Juha Manninen Status assigned => resolved
2021-07-22 12:16 Juha Manninen Resolution open => fixed
2021-07-22 12:16 Juha Manninen Fixed in Revision => r65494
2021-07-22 12:16 Juha Manninen Widgetset GTK 2 => GTK 2
2021-07-22 12:16 Juha Manninen Note Added: 0131998
2021-07-22 13:05 CudaText man Status resolved => closed