Tab Button (button)

Determines whether the active tab displays a button, such as a Close button, that executes the onTabButton extended trigger when clicked. True or False (default).

"button=True | False"

Usage

Dynamic?

Yes

Supported in Grid?

No

Dependencies:

None

Description

You can use this property and its associated trigger and image properties to implement a Close button (for example) for tabs in the TabEx widget. By default, when TabButton is True, a button with a close symbol is placed on the right side of the active tab (in a left-to-right system).

You can customize the button by specifying an image with the TabButtonImg property. Using the TabButtonImgHover property, you can specify another image to be displayed when the mouse cursor hovers over the tab.

When the user clicks the tab button, the onTabButton extended trigger is fired. You can add your own code to this trigger to determine what happens in response to this event.

Using in ProcScript

You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.

putitem/id vProperties, "TabButton", "True"
putitem/id vProperties, "TabButtonImg", "@CloseBtn.png"
putitem/id vProperties, "TabButtonImgHover", "@CloseBtnHover.png"

$fieldproperties(FLD) = vProperties

Applies To

utabex (TabEx)

Related Topics