[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Upgrading to wxWidgets 2.8.4 and Hotkeys

--On 28 May 2007 11:37 -0400 JLM <jsado_sc5@xxxxxxxxxxxxx> wrote:

It turns out that the hotkeys do not work with wxWidgets 2.8.4 for a
number of keys. The reason for this is that the file
wxOil/xrc/STANDARD_HOTKEYS.res contains the hard-coded value of the
WXK_* enums.


I'm not sure what the ideal solution to this problem is. It would be
nice to have instead of '0x157' (F2) in the file, have WXK_F2. Maybe
have a function that returns the enum value given a string:

Yes; that's probably easier than preprocessing the .res file at build
stage (the build process is complicated enough). I would read them
all into a hash and look the string values up as you come across them.