Package: gtk

Function gtk:toggle-button-mode

Lambda List

gtk:toggle-button-mode (button)

Syntax

(gtk:toggle-button-mode button) => draw-indicator
(setf (gtk:toggle-button-mode button) draw-indicator)

Arguments

button -- a gtk:toggle-button widget
draw-indicator -- if true, draw the button as a separate indicator and label, if false, draw the button like a normal button

Details

Accessor of the mode of the toggle button. The gtk:toggle-button-mode function retrieves whether the button is displayed as a separate indicator and label. The (setf gtk:toggle-button-mode) function sets whether the button is displayed as a separate indicator and label.

You can call this function on a check button or a radio button with the false value for draw-indicator to make the button look like a normal button.

This function only affects instances of classes like the gtk:check-button and gtk:radio-button classes that derive from the gtk:toggle-button class, not instances of the gtk:toggle-button class itself.

Notes

The gtk:toggle-button-mode function is equivalent to the gtk:toggle-button-draw-indicator function.
 

See also

#2023-3-28