(Old) IupTabs (Deprecated since 3.0, will be removed in a future version)

This control was moved to the main library under the same name, see IupTabs.

If you still need to use the old version, then you must call the function IupOldTabsOpen(). It will replace the registration of the new IupTabs by the old IupTabs. It does NOT work in GTK.

This is an additional control that depends on the CD library. It is included in the Controls Library.

It inherits from IupCanvas.

It contains a IupZbox to control the groups of controls. The IupZbox is a child of the IupCanvas, so all the attributes set in the Tabs will affect its children by attribute inheritance. To acess the Zbox simply call IupGetNextChild or IupGetChild for the Tabs.

Old Attributes  (not supported in the new IupTabs)

ALIGNMENT (non inheritable): propagates the attribute to the Zbox. See the IupZbox documentation.

FONT_ACTIVE (non inheritable): Indicates the font to be used when the tab is selected. 

FONT_INACTIVE (non inheritable): Indicates the font to be used when the tab is inactive.

TABSIZE (non inheritable) (at children or element): Contains the text width of a single tab in pixels. If this value is NULL, the tab will be shown with the smallest possible value that fits its title. This size can refer to the Tabs element, thus affecting all tabs, or to any tab child. If both are defined, the size of the tab child will have priority over the global size.

REPAINT (non inheritable): Since the element depends on attributes that are set in its children, this attribute updates the element internal and visual states, then redraw the Tabs.


ACTIVE, BGCOLOR, FONT, X, Y, POSITION, MINSIZE, MAXSIZE, WID, SIZE, RASTERSIZE, ZORDER, VISIBLE: also accepted.

Notes

A Tab is inactive when its child is inactive. After setting the ACTIVE attribute on the child, set UPDATE on the IupTabs so its visual state is updated. (not supported in the new IupTabs)

In the new IupTabs, the IUP_IGNORE return code in the callback is not supported anymore.

Examples

Browse for Example Files


TABTYPE=TOP
TABORIENTATION=HORIZONTAL

TABTYPE=TOP
TABORIENTATION=VERTICAL

TABTYPE=LEFT
TABORIENTATION=HORIZONTAL

TABTYPE=LEFT
TABORIENTATION=VERTICAL

See Also

IupCanvas, IupTabs (3.0)