Re: [OT] Quartum PDF Library - How to change text color of a cell in a table?

2016-11-18 Thread Roger Eller
the same time." > (La Rochefoucauld) > > ---- > On Mon, 11/7/16, Roger Eller wrote: > > Subject: [OT] Quartum PDF Library - How to change text color of a cell in > atable? > To: "How to use LiveCode" > Date: Mond

Re: [OT] Quartum PDF Library - How to change text color of a cell in a table?

2016-11-12 Thread Jan Schenkel
ame time." (La Rochefoucauld) On Mon, 11/7/16, Roger Eller wrote: Subject: [OT] Quartum PDF Library - How to change text color of a cell in a table? To: "How to use LiveCode" Date: Monday, November 7, 2016, 9:41 PM I am using Jan Shenkel's PDF Library in a

[OT] Quartum PDF Library - How to change text color of a cell in a table?

2016-11-07 Thread Roger Eller
I am using Jan Shenkel's PDF Library in a project, and need to display negative numbers in a table in red. It seems to be possible to affect the entire table, but how can I apply color commands to a specific cell? TIA, ~Roger ___ use-livecode mailing lis

Re: text color part 2

2011-11-22 Thread Mark Wieder
John- Tuesday, November 22, 2011, 5:22:51 PM, you wrote: > Mark, > Thanks for the suggestion. I've typically done just that to > color text. The problem is, in this case, the field contains > plaintext that is actual html, and I need to be able to view it > without it disappearing and modifyin

Re: text color part 2

2011-11-22 Thread John Brozycki
Mark, Thanks for the suggestion. I've typically done just that to color text. The problem is, in this case, the field contains plaintext that is actual html, and I need to be able to view it without it disappearing and modifying other text. For example, a search could be done on, say, " John

Re: text color part 2

2011-11-22 Thread Mark Wieder
John- If you can get by without setting the background color, try using the htmlText property of the field, something like this: on mouseUp local tText local tStrReplace put the htmlText of field "Original" into tStrReplace put "" \ & field "SearchField" &\ & "" into tStrReplace

Re: text color

2011-11-22 Thread John Brozycki
Mike, Thanks! You got me started with your first reply. I saw that it was grabbing the first characters of the word, even if not what you wanted. For example, if word was timebandit, but you wanted bandit, it selected "timeba". Also, I messed up incrementing my offset, so it only got the fi

Re: text color

2011-11-22 Thread Mike Bonner
Last time. I swear. Really. Would help if I'd locate all the quirks before posting, eh? The problem with the last code is that if nothing is found it still hilites from the beginning of the field for the number of chars in the search string. So to fix that.. on mouseUp set the wholematches to

Re: text color

2011-11-22 Thread Mike Bonner
Oops, me again. If you want to change the color of text anywhere in a string, inside words or not, offset is the way to go. The code I sent.. well if you have the word "biggest" and search for g, it will hilite the b because its the first letter of the word, and the length of the word being search

Re: text color

2011-11-22 Thread Mike Bonner
Oh, my last response was in your second set of code that you was causing a syntax error. The complete code is as follows. on mouseUp set the traversalOn of field "Results" to true put the text of field Results into tResults put the text of field "SearchField" into strSearch put the len

Re: text color

2011-11-22 Thread Mike Bonner
Try changing your select to this: select char 1 to tLength of word (tFramePos+tPreviousOffset) of field "Results" On Tue, Nov 22, 2011 at 8:37 AM, Devin Asay wrote: > > On Nov 21, 2011, at 6:31 PM, Mike Bonner wrote: > > > you can "set the textcolor of the selection to red" > > I've been

Re: text color part 2

2011-11-22 Thread John Brozycki
This still isn't exactly what I want. Given search term of "http:" this will change color of the entire word "http://somesite.com";. I only want to change the color of what matches. Tried the following: on mouseUp set the traversalOn of field "Results" to true put the text of field Resul

Re: text color

2011-11-22 Thread Devin Asay
On Nov 21, 2011, at 6:31 PM, Mike Bonner wrote: > you can "set the textcolor of the selection to red" I've been using RunRev/LC since 2001, and this is the first time I have ever heard about the selection function! Thanks Mike! Love LC. Love this list. Devin Devin Asay Humanities Technology

Re: text color

2011-11-21 Thread Mike Bonner
you can "set the textcolor of the selection to red" Be aware though, if you just have an insertion point in the field, and set the textcolor of the selection to red, any typing done afterwards will be red. If this isn't what you desire you'll probably want to check to see what is selected so you

text color

2011-11-21 Thread John Brozycki
Is it possible to select text in a field and change the text or highlight color of JUST the selected text? I realize I could do this with HTML ( such as ) but what if you are trying to highlight and display HTML source, and thus the field is plaintext so that HTML commands display instead of b