Can I remove a menu item?

Is it possible to delete an item of menu dynamicly?
I use menu module and internal link in PHAB, Can I initiate a menu with some
items removed when I press on different object?

Hello,

What is your purpose? May you please explain a little bit more?

“Lily” <lilywhite@x263.net> wrote in message
news:a6v4ql$oge$1@inn.qnx.com

Is it possible to delete an item of menu dynamicly?
I use menu module and internal link in PHAB, Can I initiate a menu with
some
items removed when I press on different object?

In my application there is a menu module with many items. And I hope that
the menu will popup with different items in different conditions. I use
ApCreateModule() to popup the menu. I hope some of the items can be removed
before the menu popup.
I know that the menu item can be set to dim. but I want the menu item not
visible.
Can you understand me?

“Newsgroup” <news@leadingtek.com.cn> дÈëÏûÏ¢ÐÂÎÅ
:a6vaqa$skj$1@inn.qnx.com

Hello,

What is your purpose? May you please explain a little bit more?

“Lily” <> lilywhite@x263.net> > wrote in message
news:a6v4ql$oge$> 1@inn.qnx.com> …
Is it possible to delete an item of menu dynamicly?
I use menu module and internal link in PHAB, Can I initiate a menu with
some
items removed when I press on different object?
\

Lily <lilywhite@x263.net> wrote:
: In my application there is a menu module with many items. And I hope that
: the menu will popup with different items in different conditions. I use
: ApCreateModule() to popup the menu. I hope some of the items can be removed
: before the menu popup.
: I know that the menu item can be set to dim. but I want the menu item not
: visible.
: Can you understand me?

Instead of using a static memu module, generate some or all of the menu items
whenever the user pops up the menu. For more details and an example, see
“Initializing menus” in the Working with Code chapter of the Photon
Programmer’s Guide.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

I see. Let me try it! Thank you for your help.

“Steve Reid” <stever@qnx.com> дÈëÏûÏ¢ÐÂÎÅ:a74sf7$sm3$1@nntp.qnx.com

Lily <> lilywhite@x263.net> > wrote:
: In my application there is a menu module with many items. And I hope
that
: the menu will popup with different items in different conditions. I use
: ApCreateModule() to popup the menu. I hope some of the items can be
removed
: before the menu popup.
: I know that the menu item can be set to dim. but I want the menu item
not
: visible.
: Can you understand me?

Instead of using a static memu module, generate some or all of the menu
items
whenever the user pops up the menu. For more details and an example, see
“Initializing menus” in the Working with Code chapter of the Photon
Programmer’s Guide.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems