Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmodalstart.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmodalstart.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmodalstart.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmodalstart.html on line 8
Initiate modal-window processing
void PtModalStart ( void );
ph
This function initiates modal processing. To do so, it holds
the current process loop so that another subloop can be
started.
This is needed so that the “current event” before the
loop is the same as after.
Once the subloop is complete, you must call
PtModalEnd()
to resume processing of the
initial process loop.
|
If you want the parent or any windows in the application to
refuse input while the modal dialog is displayed, you need
to block them programmatically by setting the
Pt_BLOCKED flag.
We recommend using
PtModalBlock()
and
PtModalUnblock()
instead of a PtModalStart() /
PtProcessEvent() /
PtModalEnd()
loop.
PtModalBlock() makes it easier for you to write modal code that's
compatible with multithreaded applications. |
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtModalBlock(),
PtModalEnd(),
PtModalUnblock(),
PtProcessEvent()
“Modal dialogs”
in the Window Management chapter of the Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmodalstart.html on line 122
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pt/ptmodalstart.html on line 122