Process Photon events until a given widget is destroyed
int ApModalWait( PtWidget_t *widget,
unsigned flags );
Ap
ApModalWait() processes Photon events until the given widget is destroyed.
The value of the flags argument is a combination of:
0 on success, or -1 if PtModalBlock() fails.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PtBlockAllWindows(), PtBlockWindow(), PtMakeModal(), PtModalBlock(), PtUnblockWindows()
"Multithreaded programs" in the Working with Code chapter, and "Modal dialogs" in the Lengthy Operations chapter of the Photon Programmer's Guide