Hilited Text in scrolling field becomes transparent on PC

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

raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm

Hilited Text in scrolling field becomes transparent on PC

Post by raugert » Fri Nov 19, 2021 6:08 pm

When a line is selected in a scrolling text field, the text color becomes transparent on Windows, which makes it hard to read. The text color remains ok on Mac. Is there something I need to do for PC platform.
PC Version.png
PC Version.png (6.2 KiB) Viewed 6259 times
Mac Version.png
test field hilite.zip
(4.89 KiB) Downloaded 174 times
Last edited by raugert on Fri Dec 17, 2021 5:06 pm, edited 3 times in total.
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Hilited Text in scrolling field becomes transparent on PC

Post by richmond62 » Fri Nov 19, 2021 6:11 pm

By "PC" do you mean a computer running a variety of Windows or a variety of Linux?

raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm

Re: Hilited Text in scrolling field becomes transparent on PC

Post by raugert » Fri Nov 19, 2021 6:15 pm

Sorry should have been more clear, Running Windows 10 on PC
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

Klaus
Posts: 14190
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Hilited Text in scrolling field becomes transparent on PC

Post by Klaus » Fri Nov 19, 2021 6:15 pm

Not transparent but white! 8)
This is intended behavior and also happens on my Mac.
macOS 10.14.6, LC 9.6.4
Bildschirmfoto 2021-11-19 um 18.12.58.jpg
What OS version and LC version are you using?

raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm

Re: Hilited Text in scrolling field becomes transparent on PC

Post by raugert » Fri Nov 19, 2021 6:18 pm

Using Livecode Indy 9.6.4 on MacOS BigSur 11.5.2

Mine stays Black on Mac which I prefer.
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Hilited Text in scrolling field becomes transparent on PC

Post by richmond62 » Fri Nov 19, 2021 6:19 pm

Yuck.png
Yuck.png (6.2 KiB) Viewed 6247 times
-
I think ALL you need to do is change your "textSelected" colour to something that gives you a better
contrast with the white text.

Klaus
Posts: 14190
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Hilited Text in scrolling field becomes transparent on PC

Post by Klaus » Fri Nov 19, 2021 6:20 pm

Oh, then this is definitively a bug!
It should be white since the underlying OS also uses this behavior, see screenshot from FINDER.
Bildschirmfoto 2021-11-19 um 18.19.27.jpg

raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm

Re: Hilited Text in scrolling field becomes transparent on PC

Post by raugert » Fri Nov 19, 2021 6:28 pm

I've selected Black Text in the field which stays Black on Mac but becomes white on Windows. I would have expected the same behaviour ?
Screen Shot 2021-11-19 at 11.25.39 AM.png
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

Klaus
Posts: 14190
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Hilited Text in scrolling field becomes transparent on PC

Post by Klaus » Fri Nov 19, 2021 6:36 pm

Hm, looks this only happens if you set any of these color properties!
Then this also happens here on my Mac.

I did not set anything in my first example, so in that case the default text color is black
and the hilitecolor is inherited from the underlying OS.

No idea why this happens on Windows?
Maybe THAT is the bug?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Hilited Text in scrolling field becomes transparent on PC

Post by richmond62 » Fri Nov 19, 2021 7:38 pm

the hilitecolor is inherited from the underlying OS
One way round this might be to explicitly set the hiliteColor in the field.

One thing that I also notice (on MacOS 12) is that, when hilited, text in a line in a listField
does go either white or transparent.
-
SShot 2021-11-19 at 20.44.33.png
-
I wonder about explicitly setting the textColor . . .

certainly with MacOS that "does the trick":
-
SShot 2021-11-19 at 20.46.36.png
-
I am attaching my stack here, and if some one could either confirm that it works, or that
it doesn't, in Windows . . .
Attachments
Hiliter.livecode.zip
Here's the stack.
(840 Bytes) Downloaded 136 times
Last edited by richmond62 on Sat Nov 20, 2021 11:56 am, edited 1 time in total.

raugert
Posts: 112
Joined: Thu May 26, 2016 9:30 pm

Re: Hilited Text in scrolling field becomes transparent on PC

Post by raugert » Sat Nov 20, 2021 6:21 am

Indeed when the textColor is explicitly set to Black in the field properties, the Mac version does respect the textColor. In the Windows version it doesn't respect the textColor. It automatically change the textColor to white
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0

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

Re: Hilited Text in scrolling field becomes transparent on PC

Post by jacque » Sat Nov 20, 2021 6:37 pm

That's been a problem on Windows for years. The only solution I've found is to set the hilitecolor to something that provides more contrast. You can play with it, sometimes setting it to a very light color retains the black text, but usually you need a darker color so the white text can be seen.

The behavior is due to Windows trying to be helpful.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Hilited Text in scrolling field becomes transparent on PC

Post by richmond62 » Sat Nov 20, 2021 6:56 pm

The behavior is due to Windows trying to be helpful.
Does that mean there is no way to "jump the system" on Windows?

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

Re: Hilited Text in scrolling field becomes transparent on PC

Post by jacque » Sat Nov 20, 2021 7:04 pm

richmond62 wrote:
Sat Nov 20, 2021 6:56 pm
Does that mean there is no way to "jump the system" on Windows?
Just the hilitecolor, that I know of.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Hilited Text in scrolling field becomes transparent on PC

Post by richmond62 » Sat Nov 20, 2021 7:08 pm

On Windows is the hiliteColor really white, or is it transparent as the OP stated?

If it were transparent one could layer a coloured rectangle behind it.

Looking back at their screenshot I have a feeling it is only transparent in so far as it allows the backgroundColor of
the listField to show through . . .

Post Reply