[Previous] [Contents] [Index] [Next]

PtPositionMenu()

Set a menu's position

Synopsis:

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

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

[Previous] [Contents] [Index] [Next]