We have the following command which works well with a simple object like this...
SetDialogObjectFocus>Dialog1,MSButton1
...but I'd like to use that with a PageControl that has multiple tabs (pages) on it.
How do I write the above line to set focus to Page 1 of PageControl1 of the following example Dialog?
Code: Select all
Dialog>Dialog1
object Dialog1: TForm
Left = 251
Top = 97
HelpContext = 5000
BorderIcons = [biSystemMenu]
Caption = 'CustomDialog'
ClientHeight = 223
ClientWidth = 439
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 PageControl1: TPageControl
Left = 46
Top = 22
Width = 289
Height = 193
TabOrder = 0
object TTabSheet
Caption = 'Page1'
end
object TTabSheet
Caption = 'Page2'
ExplicitLeft = 0
ExplicitTop = 0
ExplicitWidth = 0
ExplicitHeight = 0
end
object TTabSheet
Caption = 'Page3'
ExplicitLeft = 0
ExplicitTop = 0
ExplicitWidth = 0
ExplicitHeight = 0
end
end
end
EndDialog>Dialog1