Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Removing menu items in PhAB
Ref. No. QNX.000009877
Category(ies) Development
Issue How can we dynamically remove some menu items created in PhAB?
Could we have a code example?

Solution In chapter "Creating function items" in the Programmer's Guide there is an explanation for that procedure.
Function menu items do not allow you to remove menu items that are defined in PhAB, but they give you a way of adding new items at runtime.
In particular, if you create a PhAB menu whose only item is a function item, your code has full control over the contents of the menu.

There is an example in the docs - look for "Generating menu items" in the "Working with code" chapiter.