[wx 2.6.x, arm/x86, gnu] wxAcceleratorTable modification
Richard Harvey Chapman
hchapman-wx-users at 3gfp.com
Tue Apr 3 08:03:12 PDT 2007
While I will probably still find the code mentioned below useful, I
think I may have been able to use PushEventHandler() to achieve the
same results.
R.
On Apr 3, 2007, at 9:22 AM, Richard Harvey Chapman wrote:
> I have a need in my application to expose the wxAcceleratorEntry
> list inside wxAcceleratorTable. I am wondering if anyone else would
> find this useful. I would just provide a method for retrieving an
> iterator on the list.
>
> Background:
>
> I use a custom keypad to navigate the entire GUI. Think of a
> PlayStation controller and you'll have the general idea of buttons
> (Left, Right, Up, Down, Enter/Select, A, B, C, Menu) even though
> the physical form is different. When a user selects a widget like a
> combo box (by pressing a center select button), the actions of the
> buttons need to be modified in order to use the control, and then
> when the center button is pressed again, the previous
> wxAcceleratorTable and actions are restored. I did this using a
> stack allowing the user to Push/Pop accelerator tables. In order to
> generate key events, I had to create a hash table from keypad key
> to event command id. I use the entries list to update the hash
> table during push/pop.
>
> Thanks,
>
> R.
>
R.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070403/dc7a620e/PGP.pgp
More information about the wx-users
mailing list