Custom controls and wxGTK issues

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
wxCod3r
Earned a small fee
Earned a small fee
Posts: 13
Joined: Fri Jan 14, 2005 6:03 am
Location: USA

Custom controls and wxGTK issues

Post by wxCod3r »

I created a simple control which worked as expected the first few compiles;
Now however, everytime I compile my code, I am faced with two problems.

(a) The background color is always set to white regardless - other than that, the control draws correctly.

(b) the ProcessEvent() member function always returns false - further tests
using wxMessageBox() in the associated event handler in another widget prove
that the event is not being sent out.

My code isn't altered from the original version which compiled several times successfully before.

Has any one else had this problem? If so, how do I work around it :?:

wxGTK-2.4 and wxGTK-2.5.3 gcc 3.4
leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn

Post by leio »

Got any reproducing sample code handy?
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
wxCod3r
Earned a small fee
Earned a small fee
Posts: 13
Joined: Fri Jan 14, 2005 6:03 am
Location: USA

Post by wxCod3r »

Fixed it all. Thanks for the help.


Problem A: I used dc.SetBrush instead of dc.SetBackground

Problem B: Read the event articles on wxwidgets.org which were helpful
in finding several problems.

:roll: