[ wxwindows-Bugs-1696825 ] Text color in wx.TextCtrl

SourceForge.net noreply at sourceforge.net
Mon Apr 9 03:28:24 PDT 2007


Bugs item #1696825, was opened at 2007-04-09 10:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1696825&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: Yes
Submitted By: errebi1941 (errebi1941)
Assigned to: Nobody/Anonymous (nobody)
Summary: Text color in wx.TextCtrl

Initial Comment:
This cose does not work under platform Win32 XP:
     attr =  wx.TextAttr()
     attr.SetTextColour(wx.RED)
     b = self.SetDefaultStyle(attr)
(where self is a wx.TextCtrl not multiline).
In fact b == False and the text color does not change in red.
The same happens with the code
    b = self.SetStyle(0, len(text), attr)

On the contrary this other code
    self.SetForegroundColour(wx.RED)
works fine.

What about amending the documentation?

Raffaello Barella
errebi1941 at gmail.com

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1696825&group_id=9863




More information about the wx-dev mailing list