You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_ToggleButton object:
Cvo_ToggleButton
Cvo_BasicToggleButton
#include
<Cvo/Toggle.h++>
new
Cvo_ToggleButton ( char *resource_name,
{ Cvo_Object *parent | Display *display },
[ char *label ] )
The Cvo_ToggleButton object provides a standard button which may be toggled. The optional argument label is the default button label to use if none is found in the resource database.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
SetText (
char *label )
This function changes the text of the toggle button to be label.
SetDefaultText (
char *label )
If there was no label text provided at object construction, or via an X resource, then this function sets it to label.
This object uses the following X resources in addition to those used by its parent and ancestor objects.
label
(class:
Label
)The value of this resource will be displayed as the label for the toggle button. There is no default value.
This object modifies the following X resources which are used by its parent or other ancestors.
*CvoToggleButton.FontWeight
(new value:
Bold
)
*CvoToggleButton.Pad
(new value:
2
)
*CvoToggleButton.Cursor
(new value:
Top Left Arrow
)
See the example source code for an example of how to use this object.
See the legend for information about the conventions used in this documentation.