Dialogs


Defines

#define readDataCast   int (*)(void *)
#define showDataCast   int (*)(PARAM *, void *)

Functions

int pvFileDialog (PARAM *p, int id_return, int type)
int pvPopupMenu (PARAM *p, int id_return, const char *text)
int pvMessageBox (PARAM *p, int id_return, int type, const char *text, int button0, int button1, int button2)
int pvInputDialog (PARAM *p, int id_return, const char *text, const char *default_text)
int pvRunModalDialog (PARAM *p, int width, int height, int(*showMask)(PARAM *p), void *userData, int(*readData)(void *d), int(*showData)(PARAM *p, void *d), void *d)
int pvRunModalDialogScript (PARAM *p, int width, int height)
int pvTerminateModalDialog (PARAM *p)
int pvUpdateBaseWindow (PARAM *p)
int pvUpdateBaseWindowOnOff (PARAM *p, int onoff)

Detailed Description

Some dialogs

Define Documentation

#define readDataCast   int (*)(void *)
 

Open and run a modal dialog box

#define showDataCast   int (*)(PARAM *, void *)
 


Function Documentation

int pvFileDialog PARAM p,
int  id_return,
int  type
 

Open a file selection dialog on the client
id_return is send in a TEXT_EVENT
type = FileOpenDialog|FileSaveDialog|FindDirectoryDialog
FileDialogs.

int pvInputDialog PARAM p,
int  id_return,
const char *  text,
const char *  default_text
 

Open a InputDialog on the client
id_return is send in a TEXT_EVENT
if user clicked Cancel TEXT_EVENT will return ""

int pvMessageBox PARAM p,
int  id_return,
int  type,
const char *  text,
int  button0,
int  button1,
int  button2
 

Open a MessageBox on the client
id_return is send in a SLIDER_EVENT
type = BoxInformation|BoxWarning|BoxCritical
MessageBoxTypes.
if buttonX == 0 the button is not shown

int pvPopupMenu PARAM p,
int  id_return,
const char *  text
 

Open a PopupMenu on the client
id_return is send in a TEXT_EVENT
The Text will be the selected item or ""
Example for text:
menu1,menu2,,menu3
(Two commas means, separator)

int pvRunModalDialog PARAM p,
int  width,
int  height,
int(*)(PARAM *p)  showMask,
void *  userData,
int(*)(void *d)  readData,
int(*)(PARAM *p, void *d)  showData,
void *  d
 

int pvRunModalDialogScript PARAM p,
int  width,
int  height
 

For script languages:
pvRunModalDialogScript(...)
mask->show()
pvTerminateModalDialog(...)

int pvTerminateModalDialog PARAM p  ) 
 

Terminate the modal dialog box

int pvUpdateBaseWindow PARAM p  ) 
 

Call this function from a ModalDialog in order to update the base window

int pvUpdateBaseWindowOnOff PARAM p,
int  onoff
 

Call this function from a script language
pvUpdateBaseWindowOnOff($p,1);
base->readData();
base->showData();
pvUpdateBaseWindowOnOff($p,0);


Generated on Mon Jun 5 08:33:36 2006 for ProcessViewBrowser-ServerProgramming by  doxygen 1.4.6