You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_SquareToggleButton object:
Cvo_SquareToggleButton
Cvo_BasicToggleButton
#include
<Cvo/Toggle.h++>
new
Cvo_SquareToggleButton ( char *resource_name,
{ Cvo_Object *parent | Display *display },
{ char | wchar_t } *label )
The Cvo_SquareToggleButton provides a toggle button with a square box to the left of a label which may be pressed and released. 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 | wchar_t } *label )
This function changes the text of the toggle button to be label.
SetDefaultText (
{ char | wchar_t } *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 is composed of the following Cvo objects. Each object has the shown resource name. This link displays the composition of the parent object.
This object modifies the following X resources which are used by its parent or other ancestors.
*CvoSquareToggleButton.CvoLabel.Chamfer
(new value:
0
)
*CvoSquareToggleButton.Chamfer
(new value:
0
)
*CvoSquareToggleButton.BorderWidth
(new value:
0
)
*CvoSquareToggleButton.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.