Navigation: Ultimate Suite for PowerBuilder Help > Toolbar Strip > Functions >

of_toggle

Send comments on this topic.

 

Description:

Controls the toggle state of a button.

Syntax:

of_toggle (string as_item)
of_toggle (long al_item)

Argument

Description

as_item

The text of the button you want to toggle.

al_item

The index of the button you want to toogle.

Return Value:

Returns 1 if successful or a 0 if the method was unable to clear the button group.

Usage:

When a button is toggled on, an selection rectangle will display behind the item at all times. To remove the toggle, you would call the method again. To keep track of the toggle state, use of_istoggleon.

See Also:
of_istoggleon


Copyright © 2021 Werysoft Inc.