Tab Functions

Tabs are nice :)

Tabs (well XLnt tabs anyway ;) ) allow you to group related gadgets together and allow you to choose which are displayed at any one time. You've all seen them in WinDoze, so lets just get on with the explanation.

Every window can have any number of Tabs - think of tabs as being "groups", with each Tab having an ID number between 0 and wotever? However, Tab number 0 is special - ahhh! This tab is the "background" tab - basically any gadgets set to tab 0 are displayed in the window all the time - no matter which other tab is currently open. This allows you to have universal gadgets like [OK] [APPLY] [CANCEL] buttons displayed and accessable at any time. Tab 0 is also the default tab, so all gadgets are set to this when they are made.

Here's the interesting bit ;)

Function Name What it does
GUI_TAB() Add a tab gadget
GUI_GAD_TO_TAB() Sets a gadgets tab number
GUI_WINTAB() Sets the currently open tab of a window

WoW! loads there eh?