FutureBasic Logo

<<    Index    >> FutureBasic

TabView   statement / function

Statement syntax
tabview tag, index, items, rect, wndTag

Function syntax
index = tabview(tag)

The tabview statement puts a new tabview in the current output window, or alters an existing tabview's characteristics. The tabview function returns the index of the tabview's selected tab and is equivalent to calling fn TabViewIndex.

tag A number (1 through 1000000) that you assign when you create the tabview and that you refer to when altering the view. The number you assign must be different from the tag value of all other existing widgets in the current window. A negative tag hides the tabview.
index The index of the currently selected item (default = 0).
items A semicolon-delimited string or array of item titles.
rect The tabview's enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the view.
(ii) A CGRect value
wndTag An optional parameter for when the tabview's window is not the current output window. Note specifying this parameter does not bring the window to the front or make it the output window.
Dialog events

Apple documentation