On Sat, Aug 9, 2008 at 5:54 PM, Mattia Barbon <[EMAIL PROTECTED]> wrote: > Gabor Szabo wrote: > > Hi, > >> When trying to handle certain keyboard events I read on the >> wxKeyEvent page that one should use GetModifiers and then compare >> it to wxMOD_CONTROL rather than use ControlDown(). >> >> But I could not find wxMOD_CONTROL. > > I missed it when it was added; added now to my local copy > > wxMOD_NONE = 0x0000, > wxMOD_ALT = 0x0001, > wxMOD_CONTROL = 0x0002, > wxMOD_ALTGR = wxMOD_ALT | wxMOD_CONTROL, > wxMOD_SHIFT = 0x0004, > wxMOD_META = 0x0008, > wxMOD_WIN = wxMOD_META, > #if defined(__WXMAC__) || defined(__WXCOCOA__) > wxMOD_CMD = wxMOD_META, > #else > wxMOD_CMD = wxMOD_CONTROL, > #endif > wxMOD_ALL = 0xffff > > this is the definition of the constants from wxWidgets. > >> Where is it defined and how is it called in wxPerl? > > BTW, I do not know if you still plan to support > wxWidgets 2.6.x, but GetModifiers has been added in > wxWidgets 2.7.x. >
I am not sure yet either. In version 0.04 I tried to eliminate the code that caused the trouble previously but I have not seen any feedback from people using older versions of wxWidgets so I am not sure if that was all or they have already given up. I am not sure how important it is to support older versions. On one hand I am trying to get Padre into the various Linux distros where I can ask for the latest wxWidgets. After all they too want to go forward. On the other hand I would like to make it easy for people to start using Padre on older distros as well with older wxWidgets without a lot of work. I think the best will might be is to use and advanced version of wxWidgets and create binary packages of Padre that already include all the prereqs including perl, wxWidgets, wxPerl and Padre. I am sure I'll need help with this but right now I think this might be the best direction. What do you think? regards Gabor
