for my application i want to create popup menu. this popup menu is same as
the menu available on menubar.
from qnx help doc. i found the example for creating popup menu. in that
example they have created menu at runtime and used the same menu pointer for
creating popup menu on right click.
now, in my application i have already created a menu at design time and i
want to call the same menu as popup menu on click on some widget. but as
they have used menu widget ptr for creating popup menu and positioning it, i
am not able to get the menu widget pointer.
following code returns the Window widget pointer only,
i also tried by traversing the widget tree (ABW_Window as root) and tried to
find the widget of the class PtMenu in it. but i not find any entry in it.
now, for creating popup menu do i have to create menu run time only or i can
access the menu created at design time ?
for my application i want to create popup menu. this popup menu is same as
the menu available on menubar.
from qnx help doc. i found the example for creating popup menu. in that
example they have created menu at runtime and used the same menu pointer for
creating popup menu on right click.
now, in my application i have already created a menu at design time and i
want to call the same menu as popup menu on click on some widget. but as
they have used menu widget ptr for creating popup menu and positioning it, i
am not able to get the menu widget pointer.
following code returns the Window widget pointer only,
You don’t want to use ApGetWidgetPtr, You want to use ApCreateModule.
You should do the following ( make sure you have setup an internal link
for the menu widget )
i also tried by traversing the widget tree (ABW_Window as root) and tried to
find the widget of the class PtMenu in it. but i not find any entry in it.
now, for creating popup menu do i have to create menu run time only or i can
access the menu created at design time ?