You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo_Button object:
Cvo_Button
Cvo_BasicButton
#include
<Cvo/Button.h++>
new
Cvo_Button ( char *resource_name,
{ Cvo_Object *parent | Display *display },
[ char *text ] )
A Cvo_Button object creates a button on the screen with a text
label. It may be pressed and released with the mouse to cause
CvoButtonDownEvent
and CvoButtonUpEvents
. If the text argument
is present, it is used as the label for the button.
This object defines the following member functions in addition to those defined by its parent and ancestor objects.
SetText (
char *string )
Change the text in the button to string.
SetDefaultText (
char *string )
If the text has not been set, set it to string. This is the prefered method of setting default text.
This object uses the following X resources in addition to those used by its parent and ancestor objects.
*CvoButton.label
(class:
Label
)This object modifies the following X resources which are used by its parent or other ancestors.
*CvoButton.Cursor
(new value:
Top Left Arrow
)
*CvoButton.Pad
(new value:
2
)
*CvoButton.FontWeight
(new value:
Bold
)
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.