QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Disabling menu items in a PtMenu widget. |
Ref. No. |
QNX.000010424 |
Category(ies) |
Development |
Issue |
I'm having some difficulty with a PtMenu widget. Any widgets placed on a PtMenu can't be blocked or ghosted (Pt_BLOCK, Pt_GHOST). I've tried the same widgets placed on other widgets (such as a PtMenuBar) and I can disable them.x0d x0d
|
Solution |
The following is an example on how you could deal with this using the ApModifyItemState( ). x0d ApModifyItemState( &filemenu, AB_ITEM_DIM, ABN_testone , NULL);x0d x0d x0d For more information on this function you can see the library reference at http://qdn.qnx.com/support/docs/photon_2.0_en/lib_ref/ap/apmodifyitemstate.htmlx0d x0d
|
|