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

PtPositionMenu()

Set a menu's position

Synopsis:

void PtPositionMenu( PtWidget_t *menu, 
                     PhEvent_t *event );

Library:

ph

Description:

This function sets the Pt_ARG_POS resource of the provided menu widget. How the function sets this resource is determined by the type of its parent and the specified event.

If the provided menu is a child of a PtMenuButton widget, the menu is positioned relative to that menu button (to the right or below, depending on the menu button's flags).

If the provided menu isn't a child of a PtMenuButton widget and the specified event is a pointer event, the menu is positioned at the event's position. If the event isn't a pointer event and the menu has a parent, the menu is positioned at the upper-left corner of that parent.

If the provided menu isn't a child of a PtMenuButton widget and the specified event isn't a pointer event, the menu is positioned at 0,0.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhEvent_t


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/ptpositionmenu.html on line 108

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/ptpositionmenu.html on line 108