Re: Highlight colors in Windows
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Wed, 7 Jan 2009 15:17:29 -0600
Seth Verrinder wrote:
> In Windows the default highlight color is darker than it is on the
> Mac, which means that selections look kind of odd for black text. Is
> there a way to have the FTC show selected text as white?
Obviously the highlight color is chosen by the user. If we start
messing with the highlighted text color, it could become a logical
bad dream. Maybe a solution is to make the highlight color fixed
and represented as a property on the control. That kind of bucks
tradition, but it provides a consistent user interface across
platforms and makes your life as a developer more predictable.
Anyone else have an opinion?
> Also, there's a small glitch in the line breaking algorithm. If the
> character that causes a line to exceed the wrap width is a single
> character preceded by a space the line will break after the character.
>
> I made the following change at the end of FTStyleRun.seekEndPosition:
>
> Original: while Mid(text, endPoint, 1) = " "
> New: while Mid(text, endPoint+1, 1) = " "
>
> That seems to fix the problem, but I'm not sure if it's actually
> correct.
I am not able to reproduce what you describe. Could you send me
off line a sample xml document that sets me up so that I can see
it in action.
FTC Website:
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
Other related posts: