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/ptflush.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/ptflush.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/ptflush.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/ptflush.html on line 8

PtFlush()

Immediately repair widget damage

Synopsis:

int PtFlush( void );

Library:

ph

Description:

This function ensures that any widget damage is repaired, and then calls PgFlush() to flush buffered draw commands from your application to the graphics driver.

You'll need to call this function explicitly if you're drawing somewhere “outside” the standard Photon event loop (for example, in an input procedure) or if you want changes to the widgets to be made immediately.


Note: PtFlush() ignores and doesn't affect the application's hold count. For more information, see Delaying and forcing updates to the display in the Working with Code chapter of the Photon Programmer's Guide.

Returns:

The new value of the global hold count.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgFlush(), PtHold(), PtRelease()

Delaying and forcing updates to the display in the Working with Code 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/ptflush.html on line 111

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/ptflush.html on line 111