Skip to content

ShowYesNoCancel - cBaseLocalControlHost

Displays an information dialog with Yes, No and Cancel buttons

Type: Procedure

Parameters

Parameter Type Description
hoCallBack Handle Handle of callback object
hmCallback Handle Handle of callback message
sMessage String Message to be displayed
sOptCaption String (Optional) Message title
eOptDfltBtn Integer (Optional) The button that should act as the default button (when Enter is pressed on the keyboard)

Syntax

Procedure ShowYesNoCancel Handle hoCallBack Handle hmCallback String sMessage String sOptCaption Integer eOptDfltBtn

Call Example

Send ShowYesNoCancel hoCallBack hmCallback sMessage sOptCaption eOptDfltBtn

Description

The ShowYesNoCancel message is used to handle yes/no/cancel confirmations.

Using Callbacks

ShowYesNoCancel uses the concept of a callback object and message. These are passed to the procedure and passed to the client. Upon completion, the client makes a server call, which will send a callback message to the callback object passing the results of the confirmation. Therefore, a confirmation must consist of code for creating the confirmation and a method handler to handle the response.

Valid values for the eOptDfltBtn parameter are:

Constant Meaning
cmClose Dialog was closed
cmYes Dialog Yes button was clicked
cmNo Dialog No button was clicked
cmCancel Dialog was cancelled

Refer to the ShowYesNo topic's example as a guide on how to implement ShowYesNoCancel.