Hilited Text in scrolling field becomes transparent on PC
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hilited Text in scrolling field becomes transparent on PC
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.
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
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0
-
- Livecode Opensource Backer
- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hilited Text in scrolling field becomes transparent on PC
By "PC" do you mean a computer running a variety of Windows or a variety of Linux?
Re: Hilited Text in scrolling field becomes transparent on PC
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
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0
Re: Hilited Text in scrolling field becomes transparent on PC
Not transparent but white!
This is intended behavior and also happens on my Mac.
macOS 10.14.6, LC 9.6.4 What OS version and LC version are you using?

This is intended behavior and also happens on my Mac.
macOS 10.14.6, LC 9.6.4 What OS version and LC version are you using?
Re: Hilited Text in scrolling field becomes transparent on PC
Using Livecode Indy 9.6.4 on MacOS BigSur 11.5.2
Mine stays Black on Mac which I prefer.
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
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0
-
- Livecode Opensource Backer
- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hilited Text in scrolling field becomes transparent on PC
I think ALL you need to do is change your "textSelected" colour to something that gives you a better
contrast with the white text.
Re: Hilited Text in scrolling field becomes transparent on PC
Oh, then this is definitively a bug!
It should be white since the underlying OS also uses this behavior, see screenshot from FINDER.
It should be white since the underlying OS also uses this behavior, see screenshot from FINDER.
Re: Hilited Text in scrolling field becomes transparent on PC
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 ?
Livecode Indy 9.6.11 (Stable)
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0
Re: Hilited Text in scrolling field becomes transparent on PC
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?
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?
-
- Livecode Opensource Backer
- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hilited Text in scrolling field becomes transparent on PC
One way round this might be to explicitly set the hiliteColor in the field.the hilitecolor is inherited from the underlying OS
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.
- -
I wonder about explicitly setting the textColor . . .
certainly with MacOS that "does the trick":
- -
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.
Re: Hilited Text in scrolling field becomes transparent on PC
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
MacOS Sonoma 14.2
Xcode 15.0.1 SDK 17.0
Re: Hilited Text in scrolling field becomes transparent on PC
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.
The behavior is due to Windows trying to be helpful.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hilited Text in scrolling field becomes transparent on PC
Does that mean there is no way to "jump the system" on Windows?The behavior is due to Windows trying to be helpful.
Re: Hilited Text in scrolling field becomes transparent on PC
Just the hilitecolor, that I know of.richmond62 wrote: ↑Sat Nov 20, 2021 6:56 pmDoes that mean there is no way to "jump the system" on Windows?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Opensource Backer
- Posts: 10097
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hilited Text in scrolling field becomes transparent on PC
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 . . .
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 . . .