I must be missing something. selectedLoc gets you the upper left corner.
FormattedHeight will allow computation of the lowerLeft. How do you get the
right side?
-= Mike
On Apr 1, 2013, at 4:57 PM, Richard Gaskin ambassa...@fourthworld.com wrote:
Curt Ford wrote:
My client's project
Michael-
Tuesday, April 2, 2013, 6:52:57 AM, you wrote:
I must be missing something. selectedLoc gets you the upper left
corner. FormattedHeight will allow computation of the lowerLeft.
How do you get the right side?
The formattedWidth of the longest line plus the left.
--
-Mark Wieder
On Apr 2, 2013, at 7:52 AM, Michael Doub wrote:
I must be missing something. selectedLoc gets you the upper left corner.
FormattedHeight will allow computation of the lowerLeft. How do you get the
right side?
[Slaps forehead.] Now I remember what I was trying to remember in my first
Thanks Mark. I think it is going to be one of those days that I might as well
stop looking for the forest or the trees.
-= Mike
On Apr 2, 2013, at 11:01 AM, Mark Wieder mwie...@ahsoftware.net wrote:
Michael-
Tuesday, April 2, 2013, 6:52:57 AM, you wrote:
I must be missing something.
This works really well for me and it will handle multiple selected word on
different lines etc. I had a grc that was a dashed box:
on mouseUp
put the formattedRect of the selectedChunk into tRect
put 4 into tMargin
put item 1 of tRect - tMargin into item 1 of tRect
put item 3
Thanks Tom. Mark, what are some of the complications that you mentioned about
scrolling fields? I am thinking about trying to emulate the little IOS
selection handles.
I can see going from the selection to find a location to put the pin graphic,
but I am not quite sure how to modify the
Michael,
I missed the beginning of this thread so not 100% sure of what you're
trying to achieve but have you considered - set the imagesource of char x
of line y of field xyz to 1234? That makes the image appear at the
specified location and it scrolls along with everything else. You may also
imagesource replaces a text character with a graphic.
The OP wanted a square with transparency to surround a word or phrase in a
text field that looks better than the built in function.
On Tue, Apr 2, 2013 at 11:43 AM, Peter Haworth p...@lcsql.com wrote:
Michael,
I missed the beginning of
Ok, thanks stephen, as I said I missed the beginning of this thread.
Pete
lcSQL Software http://www.lcsql.com
On Tue, Apr 2, 2013 at 11:46 AM, stephen barncard
stephenrevoluti...@barncard.com wrote:
imagesource replaces a text character with a graphic.
The OP wanted a square with
Michael Doub mikedoub@... writes:
Thanks Tom. Mark, what are some of the complications
Don't know about iOS, maybe there are other things to take care of, but in
general you have to catch all the scrollbar events: scrollbarDrag,
scrollbarLineInc, scrollbarLineDec, scrollbarPageInc,
oh... and don't forget to copy the graphic at the borders of the field.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
Thanks Mark and Tom for your advice.
The original question was how to create a graphic around some selected text. I
think that has be answered.
I diverted the thread a bit to almost the opposite. I want to have two
graphics (one at the beginning and one at the end of the selected text)
Mark Wieder mwieder@... writes:
you have to catch all the scrollbar events: scrollbarDrag,
scrollbarLineInc, scrollbarLineDec, scrollbarPageInc, scrollbarPageDec
Ack! Correcting myself... scrollbarDrag handles all those messages as long as
there aren't other handlers for them.
--
Mark
Thomas McGrath III mcgrath3@... writes:
put the formattedRect of the selectedChunk into tRect
Thanks for the pointer to formattedRect. As long as you can specify the chunk
this works great (minus the scrolling complications).
--
Mark Wieder
mwie...@ahsoftware.net
On Apr 1, 2013, at 2:26 PM, Curt Ford wrote:
My client's project has long text fields, in which are a number of separate
lines that, in the original Word files, had boxes around them. The box
style in LiveCode is too tight around the text for their taste, so I've been
creating graphic
Devin Asay devin_asay@... writes:
Would the selectedRect of a text chunk do what you want?
Yeah, wouldn't that be nice?
Is there an enhancement request for this? Right now it's a bit of a complicated
algorithm, and requires a fixed line height in a field.
--
Mark Wieder
Curt Ford wrote:
My client's project has long text fields, in which are a number of separate lines that,
in the original Word files, had boxes around them. The box style in LiveCode
is too tight around the text for their taste, so I've been creating graphic rectangles
and positioning them by
On Apr 1, 2013, at 2:47 PM, Mark Wieder wrote:
Devin Asay devin_asay@... writes:
Would the selectedRect of a text chunk do what you want?
Yeah, wouldn't that be nice?
Is there an enhancement request for this? Right now it's a bit of a
complicated
algorithm, and requires a fixed line
Ah, this is getting me pretty close:
select line 3 of fld Field2
set the left of graphic Rectangle to item 1 of the selectedLoc - 10
set the top of graphic Rectangle to item 2 of the selectedLoc - 10
select empty
And checking the formattedHeight of the selectedLine will let me adjust
Curt Ford cford@... writes:
Ah, this is getting me pretty close:
select line 3 of fld Field2
set the left of graphic Rectangle to item 1 of the selectedLoc - 10
set the top of graphic Rectangle to item 2 of the selectedLoc - 10
select empty
And checking the formattedHeight
On Mon, Apr 1, 2013 at 5:31 PM, Mark Wieder mwie...@ahsoftware.net wrote:
Don't forget to adjust for scrolling as well.
And it gets slightly more complicated if you select multiple lines.
To simplify this I'd use a non-scrolling text field in a scrolling group
with the field (sized to fit
21 matches
Mail list logo