wxMac: Why doesn't SetBackgroundColor() work with wxTextCtrl?

Stefan Csomor csomor at advancedconcepts.ch
Wed Sep 13 10:59:24 PDT 2006


Hi

it is a limitation of the native unicode text control. If you set to use
always MLTE (system option wxMAC_TEXTCONTROL_USE_MLTE = 1) then things
work correctly. 

In 10.5 the problem that is the root of all this is solved, but before
that there's no other option I'm aware of unfortunately.

Best,

Stefan

> -----Original Message-----
> From: Starman [mailto:starmannj at hotmail.com] 
> Sent: Mittwoch, 13. September 2006 20:02
> To: wx-users at lists.wxwidgets.org
> Subject: wxMac: Why doesn't SetBackgroundColor() work with wxTextCtrl?
> 
> 
> Hi all,
>   I have a wxTextCtrl widget that I call 
> SetBackgroundColor(*wxGRAY) with. It works on Windows, but 
> not on the Mac; on the Mac I get a white background. Also, 
> the text sample has a wxTextCtrl where the background color 
> DOES work, but only when the flag for the object is 
> wxTE_MULTILINE. If I take wxTE_MULTILINE out, the background 
> goes back to white, just like in my app. Is there a reason 
> for this? Is it a bug?
> 
> Mike
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 




More information about the wx-users mailing list