set_mode


Description:

public void set_mode (bool draw_indicator)

Sets whether the button is displayed as a separate indicator and label.

You can call this function on a checkbutton or a radiobutton with draw_indicator = false to make the button look like a normal button.

This can be used to create linked strip of buttons that work like a StackSwitcher.

This function only affects instances of classes like CheckButton and RadioButton that derive from ToggleButton, not instances of ToggleButton itself.

Parameters:

this

a ToggleButton

draw_indicator

if true, draw the button as a separate indicator and label; if false, draw the button like a normal button