ItemInfo

>>-aTabControl~ItemInfo(--tab--)-------------------------------><


The ItemInfo method retrieves information about a tab in a tab control.

Arguments:

The only argument is:

text

The number of the tab.

Return value:

A compound variable that stores the attributes of the tab, or -1 in all other cases. The compound variable can be:

RetStem.!TEXT

The label text for the tab.

RetStem.!IMAGE

The index of the tab in the image list of the tab control, or -1 if the tab does not have an image.

RetStem.!PARAM

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

Example:

The following example displays the text of all tabs:

::method DisplayText
  curTab = self~GetTabControl("ID_TAB")
  if curTab \= .Nil then do
    do i = 0 to curTab~Items - 1
       ItemInfo. = curTab~ItemInfo(i)
       say ItemInfo.!Text
    end
  end