From: Tito D. C. <ti...@da...> - 2007-03-31 10:24:47
|
On Fri, 2007-03-30 at 20:48 +0200, tiennou wrote: > Strange, I got it there : http://wxwidgets.org/manuals/stable/ > wx_wxtextctrl.html#wxtextctrlchangevalue > I used this because http://wxwidgets.org/manuals/stable/ > wx_wxtextctrl.html#wxtextctrlsetvalue is marked as deprecated... Oh, very interesting! This exactly fixes the problem with wxEVT_COMMAND_TEXT_UPDATED in my shapes code! Too bad it's "new since wxWidgets version 2.7.1". I really need to upgrade, I checked around and wx has improved a lot since my current version. But even the latest Ubuntu has quite an old version (don't think it's newer than 2.7.1). I have just installed a desktop with the latest Ubuntu, I'll try. I'll consider compiling the latest wx on it if that's needed. > Feel free to change my code if you have a better way (or if you can't > use ChangeValue at all...) I've included an #ifdef for now, so I can at least build. > Hmm I think this is wx deprecating identifiers... I think you can > replace those with wxSAVE... #ifdef'ed this too. > Sorry, I forget every time... What a pain to add those macros > everywhere. I'm wondering why I don't get any errors about them when > I build, whereas they drive you crazy... I'm not surprised, it depends on a lot of factors. Moreover, I'm paranoid and I build with -Wall which triggers every sort of warnings. That's why I complain so much about new code ;-) Bye T -- Physics is reverse engineering |