You may return to the Cvo Object Documenation Index from this document. This document contains the following sections describing the Cvo__Confirm object:

Class

Cvo__Confirm

Base

Cvo_Window

Syntax

#include <Cvo/Confirm.h++>

int Cvo_Confirm ( char *resource,
Cvo_Object *parent,
[ char *fmt, ... ] )

Overview

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.

Children Objects

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.

New X Resources

This object uses the following X resources in addition to those used by its parent and ancestor objects.

Modified X Resources

This object modifies the following X resources which are used by its parent or other ancestors.


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.