![]() |
![]() |
![]() |
![]() |
Modify the keyboard shortcut for a menu item
int ApModifyItemAccel( ApMenuLink_t *menu,
int item_no,
const char *new_text,
int new_flags );
Ap
ApModifyItemAccel() modifies the keyboard shortcut for a menu item in a PhAB menu module.
![]() |
If you don't set AB_ITEM_ACCEL_STRDUP in the new_flags argument, ApModifyItemAccel() stores the address given by new_text instead of making a copy of the string pointed to by new_text. In this case, don't modify the string after calling this function. |
You can call ApModifyItemAccel() at any time to set the menu item's shortcut, and the effect will be seen when the menu is next displayed.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
ApGetItemText(), ApModifyItemState(), ApModifyItemText()
“Changing menu-item text” in the Working with Code chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |