Declared in <XDialog.h>
Declared from XGWindowThis 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
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
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
Usage: XGDialog*XGDialog::Create(short resID,XGPDialogProc proc,void*data)
Create this thing from the resource ID
Usage: XGDialog*XGDialog::Create(const unsigned char*dptr,XGPDialogProc proc,void*data)
Create this thing from the data
Usage: XGDialog*XGDialog::CreateInit(XGDialog*d,XGPDialogProc proc,void*data)
Internal routine for creating this thing
Usage: void XGDialog::EndDialog(long v)
End this dialog. Destroy if we're a modeless
Usage: void XGDialog::GetText(short id,short len,char*msg)
Get the text
Usage: long XGDialog::GetValue(short id)
Get the integer value of this thing. This converts from text if this is a text object
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
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.
Usage: long XGDialog::ModalRun(XGDialog*d)
The heart of the modal processing code
Usage: void XGDialog::ModifyText(char*text,const char**list)
Modify the text in a field by inserting into '^n'
Usage: long XGDialog::SendMessage(long msg,long arg,void*parg)
Send a message to me
Usage: void XGDialog::SetDefaultCancel(short id)
Set the default cancel button control
Usage: void XGDialog::SetDefaultOK(short id)
Set the default OK button control
Usage: void XGDialog::SetText(short id,const char*msg)
Set the text for this thing
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
Usage: XGDialog::XGDialog(XGSWindowInitRecord&x,XGDocument*d,XGForm*f):XGWindow(x,d,f)
Construct me
Usage: XGDialog::~XGDialog()
Destroy me