TabBarGadgetFunctionsSetTabBarGadgetItemState

TabBarGadget

ConfigurationExamplesFunctions
AddTabBarGadgetItemClearTabBarGadgetItemsCountTabBarGadgetItemsEventTypeFreeTabBarGadgetGetTabBarGadgetAttributeGetTabBarGadgetDataGetTabBarGadgetItemAttributeGetTabBarGadgetItemColorGetTabBarGadgetItemDataGetTabBarGadgetItemPositionGetTabBarGadgetItemStateGetTabBarGadgetItemTextGetTabBarGadgetStateGetTabBarGadgetTextRemoveTabBarGadgetItemSetTabBarGadgetAttributeSetTabBarGadgetDataSetTabBarGadgetFontSetTabBarGadgetItemAttributeSetTabBarGadgetItemColorSetTabBarGadgetItemDataSetTabBarGadgetItemImageSetTabBarGadgetItemPositionSetTabBarGadgetItemStateSetTabBarGadgetItemTextSetTabBarGadgetStateSetTabBarGadgetTextTabBarGadgetTabBarGadgetItemIDTabBarGadgetItemToolTipTabBarGadgetToolTipUpdateTabBarGadget
History

SetTabBarGadgetItemStateFUNCTION

Description

Changes the state of the specified tab in the specified tab bar gadget.

Syntax

SetTabBarGadgetItemState( Gadget.i, Tab.i, State.i [, Mask.i] )

Parameters

Gadget A valid number of a tab bar gadget.
Tab The position of the tab (the first tab is on position 0) or
the unique ID (see also TabBarGadgetItemID) of the tab or
one of the following constants:
#TabBarGadgetItem_Event The tab with the last event.
#TabBarGadgetItem_Selected The selected tab.
#TabBarGadgetItem_NewTab The "new" tab.
State The new state and a combination of the following constants:
#TabBarGadget_Disabled The tab is disabled.
#TabBarGadget_Selected The tab is selected.
#TabBarGadget_Checked The tab is checked.
You can use #TabBarGadget_None to change the state to normal (not selected, not disabled and not checked).
Mask (optional) Defines the attributes to change with the parameter state. The Mask is a combination of following constants:
#TabBarGadget_Disabled The disable state is changed.
#TabBarGadget_Selected The select state is changed.
#TabBarGadget_Checked The check state is changed.
By default all attributes are set

Return value

None

Remarks

The operation of this function is: NewState = (OldState & ~Mask) | (State & Mask)

See also

Example

Follow this link: Set and get the item state
Union Bytes | Login