On Jun 4, 2007, at 12:10 PM, Ed Leafe wrote:
> I have tested this at the wxPython level, and it seems to be a
> behavior in wxPython, not Dabo. I will report it to that list.
Here is Robin's (quick!) reply:
> Ed Leafe wrote:
>> I've noticed that SetBackgroundColour() doesn't seem to have
>> any effect on a TextCtrl. In my app, if I want to flag a bad value
>> with a red background, I use the code:
>> txt.SetBackgroundColour((255, 0, 0))
>> txt.Refresh()
>> ... but nothing changes. Is changing the background not supported
>> for text controls?
>
> It depends on the platform and possibly on the active theme. For
> example some GTK themes do not allow the color to be changed for
> some widgets, and I think that single line textctrls can't have
> background color changes on OSX.
I've confirmed that it doesn't work on OS X or Gtk, but *does* work
on WinXP.
Guess you'll have to find some other visual clue for your users.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]