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

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Field hilited text color on Windows

Post by trevix » Thu Jul 26, 2018 5:42 pm

On OSX10.12.6 and Windows 7 (LC 8.1.10) I have a stack with a field, in thee IDE set in the property palette to Auto hilite and List behaviour.
On OSX I set the text color to black and the hilite fill to 118,228,255 (azure)
Clicking on a line, it correctly select it, the text stay black and the background of the selected line is azure. Good

Now opening the same stack on Windows, I notice:
- the text fill is black (OK)
- the Hilite fill is now 0,0,255 (dark blue) ?
- when a line gets selected, the text become white and the line background is dark blu (very hard to read).
Why?

The same using other colours, on line selection:
OSX: the text is black and the Hilite fill= 255,177,145 (orange)
Windows: the text become white and the Hilite fill become: 255,0,0 (full red)
Is there a way to fix this (trying to make the same user experience on both platform). Am I missing something?

Thanks
Trevix
Last edited by trevix on Sun Jul 29, 2018 11:48 am, edited 1 time in total.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by FourthWorld » Thu Jul 26, 2018 6:58 pm

I'm unable to reproduce that. Here, in the rare case where I need to use highlight treatments other the the ones user's expect on their platform of choice, assigning the colors I want on one OS carries through to the others.

What happens when you try it the other way around, setting the colors on Windows, saving, and then opening on a Mac?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by trevix » Thu Jul 26, 2018 8:11 pm

My problem is that on Windows the halite text become white, no matter what.

Funny: going the other way around the hilite color stay the same on both platform.
Getting the same stack back to Windows, the hilite color are reversed to blue and red (from azure and orange).

I could correct things in scripts on Windows but the problem is that the hilite text color in Windows is alway white, so as to make unavoidable a dark hilite background. Reassigning on the property palette a black color, does not change the text that stay white (when hilite).

The Windows monitor is set to millions of colours so I don't think it depends from running on VMware.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Field hilited line color differs from OSX to Windows

Post by richmond62 » Thu Jul 26, 2018 9:39 pm

I suspect this is a system-wide setting . . .

THIS is "a pain" as it seems that we mortals cannot change this:
-
Screen Shot 2018-07-26 at 11.36.15 pm.png
Screen Shot 2018-07-26 at 11.36.15 pm.png (24.12 KiB) Viewed 8686 times
-
as THIS (pseudocode) would be lovely:

set the selectedColor of fld "xxx" to "red"[/b]
-
However, you can set the selectedColor via the Properties Palette, and this SHOULD
guarantee that cross-platform.
Last edited by richmond62 on Sun May 16, 2021 7:45 pm, edited 1 time in total.

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by trevix » Fri Jul 27, 2018 1:43 pm

Unfortunately not.
on Windows, changing the selected color with the palette does not modify the selected text that stay white.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by jacque » Fri Jul 27, 2018 6:03 pm

I remember this from ages ago. The OS sets the color and I believe it depends on the saturation of the background color the text is against. You came close with the blue / red vs. azure
/ orange. I think the difference there is due to the different color palettes Windows and Mac use. You might have better luck if the background color is lighter.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by jacque » Fri Jul 27, 2018 6:08 pm

trevix wrote:
Fri Jul 27, 2018 1:43 pm
Unfortunately not.
on Windows, changing the selected color with the palette does not modify the selected text that stay white.
The hilitedcolor refers to the color of the line fill, but does not affect the color of the text in the line. Windows seems to really like white text if the background is even marginally dark.

@Richmond, a reserved word doesn't necessarily mean that it is being used internally by the engine, but rather that it may be in the future so you shouldn't use it in your own scripts now.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by trevix » Sat Jul 28, 2018 10:05 am

If I may, with a very light yellow hilite color, the selected text stay white on Windows.
You even get white text on white hilite color: this can't be right.
TestHilite.PNG
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by jacque » Sat Jul 28, 2018 5:20 pm

I'd call that a bug and report it to the bug database. What happens if you reset the hilite color to the default?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Field hilited line color differs from OSX to Windows

Post by richmond62 » Sat Jul 28, 2018 6:48 pm

Just to be bloody-minded I have knocked together a fairly goofy stack over here on the wild side (Mac OS 10.7.5) with LC 8.1.10, and I am currently installing the Windows Community LC 8.1.10 install under WINE on the same MacOS system.

Wow: doing this takes ages.

Here's what the stack looks like on Macintosh:
-
HighAsAKite.png
-
HighAsAKite2.png
- and here's the stack:
-
HIGH LIGHTER.livecode.zip
(7.02 KiB) Downloaded 211 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Field hilited line color differs from OSX to Windows

Post by richmond62 » Sat Jul 28, 2018 7:11 pm

Blast: I couldn't get LiveCode 8.1.10 for Windows to behave with WINE bottler . . . so off I go to Linux.

I have had no problems recently running Windows builds of LiveCode with WINE on Linux.

Mind you, that was on a machine that had most of its ports blown to blazes in
a thunderstorm just before I went to the States.
-
mental.jpg
-
Macintosh on the left, Xubuntu on the right. 8)
-
Hmm: Windows 10 in VirtualBox . . .
-
Oh, well, while we're waiting:
-
mental2.jpg
-
The G5 iMac PPC isn't needed right now . . . but very useful for HC stacks, and so on.
-
mental3.jpg
-
Yup: mustn't get distracted.

Even if those photos are a demonstration how one can keep one's head above water for about $500. 8)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by FourthWorld » Sat Jul 28, 2018 9:02 pm

AFAIK the LC Windows engine has always used the field's backgroundColor as the color of highlighted text. This works well if you use the defaults and want to provide a standard appearance, but is indeed problematic if you need a custom look and are using a light highlight color and light background.

I believe you'll need to submit an enhancement request for that:
https://quality.livecode.com
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Field hilited line color differs from OSX to Windows

Post by richmond62 » Sat Jul 28, 2018 9:57 pm

What an awful, long wait that was . . .
-
HighAsAKite3.png
-
HighAsAKite4.png
-
Well; the ONLY thing I'd get excited about was the way the high-lighted text turns white.

The hiliteColor seems the same on Windows 10 as on Mac OS 10.7.5

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Field hilited line color differs from OSX to Windows

Post by richmond62 » Sun Jul 29, 2018 9:48 am

My test seemed to behave exactly opposite to trevix's one.

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Field hilited line color differs from OSX to Windows

Post by trevix » Sun Jul 29, 2018 11:48 am

I cannot anymore reproduce the hilited line color change between OSX and Windows on a new simple stack, so I may have messed up in my standalone defaults. Sorry.

My problem then is the hilited text color:

A) Resetting the hilite fill turns it to dark azure, always with white text.

B) & C) as FourthWorld mentioned, LC Windows engine seems to always use the field background color as the color of highlighted text.

D) in my case, and I suspect this is pretty common, I want to keep the field backroundcolor white, have a light hilite line color (as not to mess up with the aesthetic of the stack) and I see no way to force the selected text color to any color or to stay black as is, in order to make it readable. Note that no other change in the palette can change this.
Is there another way?
Thanks
Hilite2.PNG
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”