[ wxwindows-Bugs-1696825 ] Text color in wx.TextCtrl
SourceForge.net
noreply at sourceforge.net
Mon Apr 9 04:15:04 PDT 2007
Bugs item #1696825, was opened at 2007-04-09 12:28
Message generated for change (Comment added) made by vadz
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: Closed
>Resolution: Invalid
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
----------------------------------------------------------------------
>Comment By: Vadim Zeitlin (vadz)
Date: 2007-04-09 13:15
Message:
Logged In: YES
user_id=71618
Originator: NO
Sorry, what is there to amend? The documentation already says:
Multi-line text controls support the styles, i.e. provide a possibility to
set
colours and font for individual characters in it (note that under Windows
{\tt
wxTE\_RICH} style is required for style support).
IMO this is clear enough.
----------------------------------------------------------------------
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