GetTabControl

>>-anAdvancedControl~GetTabControl(--id--+-------------+--)----><
                                         +-,--category-+


The GetTabControl method returns an object of the TabControl class that is assigned to the tab control with the specified ID. The TabControl class (see TabControl Class) provides methods to query and manipulate tab controls.

Arguments:

The arguments are:

id

The ID of the tab control.

category

The number of the category dialog page containing the requested tab control. This argument must only be specified for category dialogs.

Return value:

An object of the TabControl class or .Nil if the requested tab control does not exist.

Example:

The following example initializes tab control PAGES to have five tabs:

::class MyDlgClass subclass UserDialog inherit AdvancedControls

::method InitDialog
  self~GetTabControl("PAGES")~AddSequence("Design","Implementation", ,
  "Test","Review","Release")

Note: GetTabControl connects an Object Rexx object with a Windows object. If the object does not exist, the Nil object is returned. Therefore, this method can only be applied after the Windows dialog has been created (after the invocation of StartIt).