SetForegroundColour() under Gtk
Vadim Zeitlin
vadim at wxwindows.org
Fri Jun 1 06:28:08 PDT 2007
On Fri, 1 Jun 2007 08:48:52 -0400 Ed Leafe <ed at leafe.com> wrote:
EL> I have an app where a text control needs to be displayed in red if
EL> certain conditions apply. The code that does this looks like:
EL>
EL> theTextCtrl.SetForegroundColour((255, 0, 0))
EL>
EL> This works great under OS X and Windows, but has no effect on Gtk:
EL> the text remains black. It has been tested on Kubuntu 7.04 and
EL> OpenSUSE 10.2, with both wxPython 2.6.x and 2.8.4.
Is theTextCtrl a single or multi-line one? Also, do you use any specific
theme with GTK+?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list