Accel Text trouble

hrm if I set the ‘Accel Text’ for a
menu-item, It does not respond when
that sequence is pressed? I can’t
figure out what’s wrong :slight_smile:

kvack <eh@nospam.ty> wrote:

hrm if I set the ‘Accel Text’ for a
menu-item, It does not respond when
that sequence is pressed? I can’t
figure out what’s wrong > :slight_smile:

Setting the ‘Accel Text’ doesn’t make the key sequence actually
work. Setting the ‘Accel Text’ just causes the key sequence you
give it to appear in the menu. Making it work is a separate step.
To make it work you have to attach a Pt_CB_HOTKEY callback (its
descriptive name is ‘Hotkey’). A good place to attach the hotkey
would be to the window that the menu will appear from.

Previously, Steven Dufresne wrote in qdn.public.qnxrtp.devtools:

kvack <> eh@nospam.ty> > wrote:
hrm if I set the ‘Accel Text’ for a
menu-item, It does not respond when
that sequence is pressed? I can’t
figure out what’s wrong > :slight_smile:

Setting the ‘Accel Text’ doesn’t make the key sequence actually
work. Setting the ‘Accel Text’ just causes the key sequence you
give it to appear in the menu. Making it work is a separate step.
To make it work you have to attach a Pt_CB_HOTKEY callback (its
descriptive name is ‘Hotkey’). A good place to attach the hotkey
would be to the window that the menu will appear from.

tnx.
the hotkeys do what I want now :slight_smile: