When I save the Dialog Editor and update the script, everything looks good. But when I run the script or reopen the Dialog Editor, the width is lost and the label goes to minimum needed to show the label (in this case 30).
Bug or am I doing something wrong?
Note lblTitle width = 429
Code: Select all
Dialog>Dialog1
object Dialog1: TForm
Left = 373
Top = 198
HelpContext = 5000
BorderIcons = [biSystemMenu]
Caption = 'CustomDialog'
ClientHeight = 212
ClientWidth = 431
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = True
ShowHint = True
OnTaskBar = False
PixelsPerInch = 96
TextHeight = 13
object lblTitle: TLabel
Left = 1
Top = 32
Width = 429
Height = 13
Alignment = taCenter
Caption = 'TITLE'
end
object Edit1: TEdit
Left = 1
Top = 72
Width = 429
Height = 21
TabOrder = 1
Text = 'Edit1'
end
end
EndDialog>Dialog1
GetDialogProperty>Dialog1,lblTitle,Width,TitleWidth
SetDialogProperty>Dialog1,Edit1,Text,%TitleWidth%
Show>Dialog1,