HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
I thought LC supported HTML Colour Names? I have been using the Colour Name Groups found here https://www.w3schools.com/colors/colors_groups.asp and found that some of the colours do not work in LC. For example “Crimson” reports an error in

Re: HTML Colour Groups

2020-05-31 Thread Rick Harrison via use-livecode
Hi Terry, Does it work if you use the Hex Code instead of the name? Are you using the LC Server for this? If so, what version of LC server are you running? Is the code embedded as LC code or is it HTML or CSS? Have you tested it in more than one Web-browser? Sometimes things don’t work in one

Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
It seems that LC only supports the use of names that can be found by put the colorNames function and “Crimson” is not one of those. How the names of colors included is determined, I do not know. I just thought (clearly incorrectly) that HTML colors were included. On another point. When you

Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
Our posts just crossed in the post Can you answer my question about using hex in a variable when setting an objects colour. Thanks Terry > On 31 May 2020, at 17:06, Mark Wieder via use-livecode > wrote: > > available colors. ___ use-livecode

Re: HTML Colour Groups

2020-05-31 Thread Tore Nilsen via use-livecode
You try to sign a value to tColor with the command set. The right command is put, as in this example, this works on my end: put "#FFC0CB" into tColor set the backgroundcolor of graphic 1 to tColor Best regards Tore Nilsen > 31. mai 2020 kl. 18:13 skrev Terence Heaford via use-livecode > :

Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
I realise I used set in my post but will have used put in the script as you cannot use set and apply the script. Don’t know why it didn’t work originally, sorry for bothering you. All the best Terry > On 31 May 2020, at 17:38, Terence Heaford via use-livecode > wrote: > > Apologies, works

Re: HTML Colour Groups

2020-05-31 Thread J. Landman Gay via use-livecode
Note there's a bug in the property inspector when using hex colors. It works and the color is applied to the object, but it doesn't show up in the property inspector's color squares. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On May

Re: HTML Colour Groups

2020-05-31 Thread Mark Wieder via use-livecode
On 5/31/20 2:39 AM, Terence Heaford via use-livecode wrote: I thought LC supported HTML Colour Names? I have been using the Colour Name Groups found here https://www.w3schools.com/colors/colors_groups.asp and found that some of the colours

Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
Apologies, works now. Don’t what I did incorrectly to make it not work. Thanks Terry > On 31 May 2020, at 17:25, Tore Nilsen via use-livecode > wrote: > > put "#FFC0CB" into tColor > > set the backgroundcolor of graphic 1 to tColor ___

Re: HTML Colour Groups

2020-05-31 Thread Paul Hibbert via use-livecode
Hi Terence, I’m not sure where these originate from, although I suspect they are from an earlier HTML version than is displayed on w3schools. After a quick comparison, the missing colours appear to be; Aqua Crimson Fuchsia Indigo Lime Olive RebeccaPurple Silver Teal It probably wouldn’t be

vCard save file format binfile or file?

2020-05-31 Thread Bill Vlahos via use-livecode
If I just use URL file to save vCard files I will get different results on Windows vs Macintosh regarding CRLF. VCard files are text files. The vCard standard requires CRLF as the line format regardless of which platform the data is being written in. LiveCode using the URL file command will

Re: vCard save file format binfile or file?

2020-05-31 Thread kee nethery via use-livecode
> On May 31, 2020, at 4:56 PM, Bill Vlahos via use-livecode > wrote: > > If I just use URL file to save vCard files I will get different results on > Windows vs Macintosh regarding CRLF. VCard files are text files. UTF-8 files. https://tools.ietf.org/html/rfc6350#section-3.1 > The vCard