class XGDialog

Declared in <XDialog.h>
Declared from XGWindow

This is the dialog box declaration. This declaration is set up so I can be created either modal or modeless; modal dialogs should use the modal dialog function setup given below


Public methods

XGDialog::AlertProc
XGDialog::CloseWindow
XGDialog::Create
XGDialog::Create
XGDialog::CreateInit
XGDialog::EndDialog
XGDialog::GetText
XGDialog::GetValue
XGDialog::ModalAlert
XGDialog::ModalDialog
XGDialog::ModalRun
XGDialog::ModifyText
XGDialog::SendMessage
XGDialog::SetDefaultCancel
XGDialog::SetDefaultOK
XGDialog::SetText
XGDialog::SetValue
XGDialog::XGDialog
XGDialog::~XGDialog


Public methods

XGDialog::AlertProc

Usage: long XGDialog::AlertProc(XGDialog*d,void*ptr,long msg,long arg,void*)

run the alert proc by inserting the text of the four fields into the locations specified by '^0' through '^3' in the text fields

XGDialog::CloseWindow

Usage: bool XGDialog::CloseWindow()

An alternate way to close this; on the Microsoft Windows platform this is called when the window's close box is clicked

XGDialog::Create

Usage: XGDialog*XGDialog::Create(short resID,XGPDialogProc proc,void*data)

Create this thing from the resource ID

XGDialog::Create

Usage: XGDialog*XGDialog::Create(const unsigned char*dptr,XGPDialogProc proc,void*data)

Create this thing from the data

XGDialog::CreateInit

Usage: XGDialog*XGDialog::CreateInit(XGDialog*d,XGPDialogProc proc,void*data)

Internal routine for creating this thing

XGDialog::EndDialog

Usage: void XGDialog::EndDialog(long v)

End this dialog. Destroy if we're a modeless

XGDialog::GetText

Usage: void XGDialog::GetText(short id,short len,char*msg)

Get the text

XGDialog::GetValue

Usage: long XGDialog::GetValue(short id)

Get the integer value of this thing. This converts from text if this is a text object

XGDialog::ModalAlert

Usage: long XGDialog::ModalAlert(short al,const char*a,const char*b,const char*c,const char*d)

Alert routine; this spins until a button is pressed. This simplifies the implementation of custom alerts

XGDialog::ModalDialog

Usage: long XGDialog::ModalDialog(short resID,XGPDialogProc proc,void*data)

This is the modal dialog version. On the Macintosh and on Windows I do all sorts of wierd magic stuff.

XGDialog::ModalRun

Usage: long XGDialog::ModalRun(XGDialog*d)

The heart of the modal processing code

XGDialog::ModifyText

Usage: void XGDialog::ModifyText(char*text,const char**list)

Modify the text in a field by inserting into '^n'

XGDialog::SendMessage

Usage: long XGDialog::SendMessage(long msg,long arg,void*parg)

Send a message to me

XGDialog::SetDefaultCancel

Usage: void XGDialog::SetDefaultCancel(short id)

Set the default cancel button control

XGDialog::SetDefaultOK

Usage: void XGDialog::SetDefaultOK(short id)

Set the default OK button control

XGDialog::SetText

Usage: void XGDialog::SetText(short id,const char*msg)

Set the text for this thing

XGDialog::SetValue

Usage: void XGDialog::SetValue(short id,long value)

Get the integer value of this thing. This converts from text if this is a text object

XGDialog::XGDialog

Usage: XGDialog::XGDialog(XGSWindowInitRecord&x,XGDocument*d,XGForm*f):XGWindow(x,d,f)

Construct me

XGDialog::~XGDialog

Usage: XGDialog::~XGDialog()

Destroy me