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/wid_build/libs/ptresizepolicy.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/wid_build/libs/ptresizepolicy.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/wid_build/libs/ptresizepolicy.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/wid_build/libs/ptresizepolicy.html on line 8

PtResizePolicy()

Determine whether a widget has a resize policy

Synopsis:

int PtResizePolicy( PtWidget_t *widget );

Arguments:

widget
A pointer to the widget to check for a resize policy.

Description:

This function determines whether a resize policy is currently in effect for the specified widget.

Returns:

0
No resize policy.
Nonzero
A resize policy is in effect. This returned value is a combination of the resize policy flags in effect.

Examples:

You can test the return of PtResizePlicy() to determine which policies are in effect:

int resizePolicy;
resizePolicy=PtResizePolicy(myButton);

// test if any resize policies are set:
if(resizePolicy & Pt_RESIZE_XY_BITS == 0) {
  // no policies are set: do some stuff
}

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

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/wid_build/libs/ptresizepolicy.html on line 114

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/wid_build/libs/ptresizepolicy.html on line 114