Field hilited text color on Windows

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

bogs
Posts: 5443
Joined: Sat Feb 25, 2017 10:45 pm

Re: Field hilited text color on Windows

Post by bogs » Sun Jul 29, 2018 1:17 pm

I see your using 'srcCopy' as the ink, perhaps a change there would produce the result your looking for? For instance, 'blendDifference' which produces the exact opposite color as what you have originally (a little unpredictable for what your shooting for though I suspect).
Image

trevix
Posts: 1026
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Field hilited text color on Windows

Post by trevix » Sun Jul 29, 2018 3:05 pm

Yes: on windows even the scroll bar get colorised...with awful results. I don't thing is the way to go.

Estethically also I am also having problem with how the hilited line gets painted.
In the first screen shot I posted, I have a 10pt text, with fixed line height, text height 12, margin 8.
The hilited color is "top" aligned with the text, instead of being vertically centered with the text.
Very ugly.
Off course the problem arise from using the "12" text height. Around "14" the color hilite gets centered. But since I need to squeeze more text lines in the field, I cannot avoid this.
On OSX, being able to use light hilited colours, the problem is not so apparent. But is the same.
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

garmeister
Posts: 29
Joined: Sat Apr 10, 2021 6:56 pm

Re: Field hilited text color on Windows

Post by garmeister » Sun May 16, 2021 7:24 pm

This is indeed an issue. Hopefully it gets resolved. The garrish green background was chosen to show that it's indeed the background color showing through the text on the Win version. :?
Attachments
HiliteFieldMacVsWin.jpg
Gary E Chike DMD
"Experience is what you get when you don't get what you want"

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7312
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Field hilited text color on Windows

Post by jacque » Mon May 17, 2021 5:09 pm

Isn't that a "feature" in Windows? I think it tries to make sure there's enough contrast to be able to see the hilited text. Changing the hilitecolor of the field to something lighter might fix it. Or you could turn off autohilite and set the backcolor of the line by script.

I vaguely remember dealing with this a long time ago.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”