Programmer's Reference

Dialog convenience methods

Common Widgets provides several dialog creation convenience methods. The following methods create a CwMessageBox as the child of a CwDialogShell, and set the dialogType resource as indicated so that an appropriate icon is displayed:

createMessageDialog:argBlock:
XmDIALOGMESSAGE

createErrorDialog:argBlock
XmDIALOGERROR

createInformationDialog:argBlock:
XmDIALOGINFORMATION

createQuestionDialog:argBlock:
XmDIALOGQUESTION

createWarningDialog:argBlock:
XmDIALOGWARNING

createWorkingDialog:argBlock:
XmDIALOGWORKING

The following methods create a CwSelectionBox as the child of a CwDialogShell, and set the dialogType resource as indicated:

createSelectionDialog:argBlock:
XmDIALOGSELECTION

createPromptDialog:argBlock:
XmDIALOGPROMPT

Here are two additional dialog creation convenience methods:

createBulletinBoardDialog:argBlock:
Creates an empty CwBulletinBoard widget within a dialog shell, allowing the application to define the entire contents of the dialog

createFormDialog:argBlock:
Creates an empty CwForm widget within a dialog shell, allowing the application to define the entire contents of the dialog


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]