You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo__Confirm object:
Cvo__Confirm
Cvo_Window
#include
<Cvo/Confirm.h++>
int
Cvo_Confirm ( char *resource,
Cvo_Object *parent,
[ char *fmt, ... ] )
The Cvo__Confirm object is always created by the Cvo_Confirm()
function. A confirmation box is brought up centered on the object
parent. The optional arguments starting with fmt are passed
to sprintf(3)
to produce the message in the confirmation box. If
the X resource label
is defined, it will override fmt. If
neither fmt nor the label
X resource are defined,
resource will be used.
The Cvo_Confirm()
function returns with either a True
or
False
value depending on which of the two Cvo_Button objects in
the confirmation box was pressed. If the confirm Cvo_Button is
pressed, True
will be returned. If the cancel Cvo_Button is
pressed, False
will be returned.
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.
Cvo_Label
:
*CvoConfirm.label
Cvo_Button
:
*CvoConfirm.Frame.confirm
Cvo_Button
:
*CvoConfirm.Frame.cancel
This object uses the following X resources in addition to those used by its parent and ancestor objects.
*CvoConfirm.label
(class:
Label
)The value of this resource will be used as the text appearing in the Cvo_Label object in this Cvo__Confirm object.
*CvoConfirm.confirm
(class:
Message
) (default value:
Confirm
)
The value of this resource will be used as the text label for the confirm Cvo_Button in the object.
*CvoConfirm.cancel
(class:
Message
) (default value:
Cancel
)
The value of this resource will be used as the text label for the cancel Cvo_Button in the object.
This object modifies the following X resources which are used by its parent or other ancestors.
*CvoConfirm.Pad
(new value:
10
)
*CvoConfirm.InternalPad
(new value:
10
)
*Color*CvoConfirm*Background
(new value:
firebrick3
)
*Color*CvoConfirm.Raise
(new value:
)
*CvoConfirm.Raise
(new value:
10
)
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.