AddFullSeq

>>-aTabControl~AddFullSeq(--text_1--,--icon_1--,--numValue_1--,--text_2-->

>--,--icon_2--,--numValue_2--,--...--)----------------------------------><


The AddFullSeq method inserts a sequence of tabs in a tab control for which you can specify the number, label text, and integer value.

Arguments:

The arguments are:

text

The label text for the inserted tab.

icon

The index of the icon in the image list of the tab control, set with the setImageList() method.

numValue

An integer value stored together with the tab to save information.

Return value:

The number of the tab inserted last, or -1 for all other cases.

Example:

The following example adds a sequence of tabs and sets their text and icon:

::method InitDialog
  InitDlgRet = self~InitDialog:super
  curTab = self~GetTabControl("ID_TAB")
  if curTab \= .Nil then do
    curTab~setImageList(imageList)
    curTab~AddFullSeq("s11", 0, , "s12", 1, , "s13", 2, , "s14", 3)
  end
return InitDlgRet