SYNTAX
wid=XSDialog(parent,group,width,height,name)
XSWidget *wid,*parent,*group;
int width,height;
char *name;
DESCRIPTION
XSDialog create a dialogbox widget in the center the selected parent, linked to a widget group, with size width,height. The name string is drawed in this dialog with a N*XTSTEP-like layout.
All operations of XSDialog in the X server are delayed until XSCheckEvent is executed.
Example
#include <xstep.h>
#include <stdlib.h>
void onclickf(XSWidget *wid) {
XSWidget *w2;
w2=XSDialog(wid->desktop,wid,400,180,"dialog example");
XSButton(w2,-8,-8,72,24,"Close",XSWindowClose);
}
int main(int argc,char **argv) {
XSWidget *d1,*w1;
d1=XSDesktop(getenv("DISPLAY"),argv,argc);
w1=XSWindow(d1,0,0,400,400,"dialog example");
XSButton(w1,-88,-8,72,24,"Dialog",onclickf);
XSButton(w1,-8 ,-8,72,24,"Close",XSWindowClose);
while(XSCheckEvent(d1,XS_BLOCK));
return 0;
}