Re: Printing BackgroundColor of text

2021-03-07 Thread Richard Gaskin via use-livecode
hakan wrote: > Looks like a bug to me, and on top of that the HTML should be updated > IMHO as the -tag is officially deprecated in HTML 5. The relationship between HTML and HtmlText is very much like the relationship between Java and JavaScript. Which is to say, aside from sharing four lette

Re: Printing BackgroundColor of text

2021-03-07 Thread Dan Friedman via use-livecode
Thanks Håkan... I already reported it. Get Outlook for iOS<https://aka.ms/o0ukef> From: ha...@exformedia.se Sent: Sunday, March 7, 2021 9:02:16 AM To: How to use LiveCode Cc: Dan Friedman Subject: Re: Printing BackgroundColor of text Looks like a bug

Re: Printing BackgroundColor of text

2021-03-07 Thread Håkan Liljegren via use-livecode
Looks like a bug to me, and on top of that the HTML should be updated IMHO as the -tag is officially deprecated in HTML 5. But, that’s another story. When I try I get the same error! So, I guess it is a bug that should be reported- :-Håkan On 4 Mar 2021, 21:06 +0100, How to use LiveCode , wrot

Printing BackgroundColor of text

2021-03-04 Thread Dan Friedman via use-livecode
I seem to be having an issue printing text with a backgroundColor. Anyone else have this experience? SIMPLE to reproduce: Make a stack and put a field in it. Set the htmlText of the field to this: Color: 0233 Deep Marsh Now, run this either in a button or in the multiline message

Re: Set the backgroundcolor of all lines a field to null

2018-08-24 Thread Sannyasin Brahmanathaswami via use-livecode
@Richard re: Algo: It is a list of audio titles in a category on our web site. most of which the metadata in stored local my sqlLite. The audio and been posted since the last update to the app, is "Recent". It is stored in an local variable/array with all the metadata for each audio, but only

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Richard Gaskin via use-livecode
There's a lot in that, Brahmanathaswami. http://lists.runrev.com/pipermail/use-livecode/2018-August/249651.html 2000 lines is not much. I suspect any time spent is relating to needing the redraw the field each time it's touched. Try locking the screen at the top of the handler and see if that

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread J. Landman Gay via use-livecode
e: > I have some big lists in mobile, How big is "big"? 100 lines? 1,000? 1,000,000? > I sent the bkgndColor of certain > lines. > > Then I want clear that, > > How do we do this "for each line x" > which does not return the number of the line, but va

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Sannyasin Brahmanathaswami via use-livecode
00? 1,000,000? > I sent the bkgndColor of certain > lines. > > Then I want clear that, > > How do we do this "for each line x" > which does not return the number of the line, but value > > command setAudioListColors pLineNum,pColor # pass "4,"

RE: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread Ralph DiMola via use-livecode
nformation Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of dunbarxx via use-livecode Sent: Thursday, August 23, 2018 9:46 AM To: use-revolut...@lists.runrev.com Cc: dunbarxx Subject: Re: Set the backgroundco

Re: Set the backgroundcolor of all lines a field to null

2018-08-23 Thread dunbarxx via use-livecode
We are all happy with the speedy "repeat for each..." construction. But there are times when the good ol' "repeat with..." construction, which manages a counting index internally, is just the right way to do things. The line number is at the ready with each iteration. Craig -- Sent from: http

Re: Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Richard Gaskin via use-livecode
not return the number of the line, but value > > command setAudioListColors pLineNum,pColor # pass "4,"0,0,0" > #slow! > repeat with x=1 to (the number lines of fld "audioList") > set the backgroundcolor of line pLineNum of fld "audioList&qu

Re: Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Brian Milby via use-livecode
Have you looked at the performance of using styledText? put the styledText of fld "audioList" into tTextA repeat for each key tKey in tTextA put pColor into tTextA[tKey]["style"]["backgroundcolor"] end repeat set the styledText of fld "

Re: Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Mark Wieder via use-livecode
"audioList" # need to get a line number and not its value set the backgroundcolor of line tLineNumber of fld "audioList" to pColor add 1 to tLineNumber end repeat end setAudioListColors -- Mark Wieder ahsoftw...@gmail.com ___

Set the backgroundcolor of all lines a field to null

2018-08-22 Thread Sannyasin Brahmanathaswami via use-livecode
repeat with x=1 to (the number lines of fld "audioList") set the backgroundcolor of line pLineNum of fld "audioList" to pColor end repeat repeat for each line x in fld "audioList" # need to get a line number and not its value set the backgroundc

Re: Changing backgroundColor of a button changes its style ?

2018-06-18 Thread Alex Tweedly via use-livecode
On 18/06/2018 18:17, Richard Gaskin via use-livecode wrote: > > What am I doing wrong or missing ? If you apply a non-standard color, it's no longer a standard button. We have a roundrect style that may work for the type of non-standard button you're looking for. I should probably take it a

Re: Changing backgroundColor of a button changes its style ?

2018-06-18 Thread Richard Gaskin via use-livecode
Alex Tweedly wrote: > 1. create a new stack > 2. drag a 'standard button' from the toolbar onto it > (you now have a nicely rounded-corner button) > 3. set its script to > > on mouseup > set the backgroundcolor of me to "200,50,50" > end mouseup &

Changing backgroundColor of a button changes its style ?

2018-06-18 Thread Alex Tweedly via use-livecode
1. create a new stack 2. drag a 'standard button' from the toolbar onto it (you now have a nicely rounded-corner button) 3. set its script to on mouseup    set the backgroundcolor of me to "200,50,50" end mouseup 4, click on 'browse mode' so the stack is "

Re: Ineffective backGroundColor

2015-12-18 Thread Mark Waddingham
Hi Richmond, On 2015-12-16 20:33, Richmond wrote: On 16/12/15 20:49, Richmond wrote: Why, if I set the backGroundColor of an object using a 3 number code (RGB) am I able to do a: put the backGroundColor and get those 3 values, while if I set the backGroundColor of an object using a

Re: Ineffective backGroundColor

2015-12-16 Thread Richmond
On 16/12/15 20:49, Richmond wrote: Why, if I set the backGroundColor of an object using a 3 number code (RGB) am I able to do a: put the backGroundColor and get those 3 values, while if I set the backGroundColor of an object using a colorName am I UNABLE to get the RGB values using a: put

Ineffective backGroundColor

2015-12-16 Thread Richmond
Why, if I set the backGroundColor of an object using a 3 number code (RGB) am I able to do a: put the backGroundColor and get those 3 values, while if I set the backGroundColor of an object using a colorName am I UNABLE to get the RGB values using a: put the backGroundColor ??? AND, what is

Re: BackgroundColor

2015-04-03 Thread Peter M. Brigham
On Apr 3, 2015, at 12:58 PM, Peter Haworth wrote: > That sounded promising but alas, no joy. > > Setting the backgroundcolor to empty had no effect so I tried setting it to > white. That went back to the original issue where white was the > backgroundcolor up to the font siz

Re: BackgroundColor

2015-04-03 Thread Peter Haworth
That sounded promising but alas, no joy. Setting the backgroundcolor to empty had no effect so I tried setting it to white. That went back to the original issue where white was the backgroundcolor up to the font size and the space between that and the text height was the original backgroundcolor

Re: BackgroundColor

2015-04-03 Thread Graham Samuel
r 2015, at 13:17, Peter M. Brigham wrote: >> >> Late to the party here, but what happens if you lock the screen, set the >> backgroundcolor of the line to x, then set the backgroundcolor of all the >> other words to empty? >> >> -- Peter >> >>

Re: BackgroundColor

2015-04-03 Thread Graham Samuel
Ah, good explanation - I'll have a look at the Community version. Thanks Graham Sent from my iPhone > On 3 Apr 2015, at 13:17, Peter M. Brigham wrote: > > Late to the party here, but what happens if you lock the screen, set the > backgroundcolor of the line t

Re: BackgroundColor

2015-04-03 Thread Peter M. Brigham
Late to the party here, but what happens if you lock the screen, set the backgroundcolor of the line to x, then set the backgroundcolor of all the other words to empty? -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Mar 31, 2015, at 8:02 PM, Peter Haworth wrote

Re: BackgroundColor

2015-03-31 Thread Peter Haworth
e. Would the "measureText" function give > enough information to allow you to place a transparent colored rectangle > graphic? > > > Craig > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Tue, Mar 31, 2015 5:53

Re: BackgroundColor

2015-03-31 Thread dunbarx
ubject: Re: BackgroundColor Thanks Ralph. Unfortunately I need to set the background of certain columns (by which I mean between tabs) of a line. Interesting that it works for the whole line though. I think I might report it at QCC, not really a bug just an inconsistency. Pete lcSQL Soft

Re: BackgroundColor

2015-03-31 Thread Peter Haworth
; Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html> On Tue, Mar 31, 2015 at 1:46 PM, Ralph DiMola wrote: > Pete, > > I found that this happens on setting just char(s). If you set > backgroundcolor of t

RE: BackgroundColor

2015-03-31 Thread Ralph DiMola
Pete, I found that this happens on setting just char(s). If you set backgroundcolor of the line it fills in the entire height. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun

BackgroundColor

2015-03-31 Thread Peter Haworth
I am setting the backgroundcolor by script of a chunk of text in a field whose textSize is 16 and textHeight is 30. The backgroundcolor only hilites the text up to the textSize, the area between the textSize and the textHeight stays unhilited. Is there a property which will hilite the selected

Re: Backgroundcolor of a line in a scrolling list

2013-01-09 Thread Peter Haworth
t have to add the extra lines. > > If you set the margins of the scrolling list field to 0,8,0,8 > and the firstindent to 8 and the borderWidth to 1 you can set the > backgroundcolor of one/multiple lines to what you want and have a colored > background. > If you leave the borderwidth a

Re: Backgroundcolor of a line in a scrolling list

2013-01-08 Thread Peter Haworth
Yep, I wasn't looking forward to keeping track of real/junk lines! I haven't had a chance to try this yet but will later today. Another thought - is it possible there might be a way to do this using the htmlText of the field? Pete lcSQL Software On Tue, Jan 8, 2013 at 2:

Re: Backgroundcolor of a line in a scrolling list

2013-01-08 Thread Kay C Lan
On Tue, Jan 8, 2013 at 6:17 PM, BNig wrote: > If you set the margins of the scrolling list field to 0,8,0,8 Nice! Peter should be very happy with that. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsu

Re: Backgroundcolor of a line in a scrolling list

2013-01-08 Thread BNig
Kay, that is a very neat trick. I played with it and it turns out you don't have to add the extra lines. If you set the margins of the scrolling list field to 0,8,0,8 and the firstindent to 8 and the borderWidth to 1 you can set the backgroundcolor of one/multiple lines to what you wan

Re: Backgroundcolor of a line in a scrolling list

2013-01-07 Thread Peter Haworth
Thanks Kay, I'll five that a whirl. Pete lcSQL Software On Mon, Jan 7, 2013 at 5:05 PM, Kay C Lan wrote: > Pete, > > How far are you prepared to kludge this? > > Set the margin for the field to 0 > Under Basic Properties unclick 'fixedLineHeight' and set the > 'firstInden

Re: Backgroundcolor of a line in a scrolling list

2013-01-07 Thread Kay C Lan
Pete, How far are you prepared to kludge this? Set the margin for the field to 0 Under Basic Properties unclick 'fixedLineHeight' and set the 'firstIndent' to 4 (or something you like). Now the part that gets ugly: For the content of your field insert in the line before your content a ` charact

Re: Backgroundcolor of a line in a scrolling list

2013-01-07 Thread Peter Haworth
--- > From: Peter Haworth > To: How to use LiveCode > Sent: Mon, Jan 7, 2013 5:53 pm > Subject: Backgroundcolor of a line in a scrolling list > > > I have a need to set the background color of specific lines in a scrolling > list field. All works quite nicely except that c

Re: Backgroundcolor of a line in a scrolling list

2013-01-07 Thread Peter Haworth
Hi Bernd, Not quite what I want to do. I want some lines to have a different background color than the others irrespective of whether they are in the hilitedlines property. So they could have a backgroundcolor and still be selected. Pete lcSQL Software <http://www.lcsql.com> On Mon,

Re: Backgroundcolor of a line in a scrolling list

2013-01-07 Thread dunbarx
Pete. Setting the margins to 0 is not an option? Craig -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Mon, Jan 7, 2013 5:53 pm Subject: Backgroundcolor of a line in a scrolling list I have a need to set the background color of specific lines in a scrolling

Re: Backgroundcolor of a line in a scrolling list

2013-01-07 Thread BNig
t you mean Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Backgroundcolor-of-a-line-in-a-scrolling-list-tp4658727p4658731.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ u

Backgroundcolor of a line in a scrolling list

2013-01-07 Thread Peter Haworth
I have a need to set the background color of specific lines in a scrolling list field. All works quite nicely except that color does not quite extend to the edges of the scrolling list. I suspect that it stays within the margin settings of the field. It would be nice to have the color extend th