rect of chunk in field

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark

Locked
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

rect of chunk in field

Post by monte » Mon Aug 26, 2013 8:08 am

Hi

I'm wondering about the possibility of getting the rect of a chunk of text in a field. I'm guessing I'd need to delve into MCParagraph etc again... I'm thinking of something like the reverse of getclickindex... The use case is I need to display a graphic in the rect of a word of a field.

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3991
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: rect of chunk in field

Post by bn » Mon Aug 26, 2013 8:33 am

Hi Monte,

can't you use the formattedRect?

Code: Select all

put the formattedRect of word 5 of field 1
KInd regards
Bernd

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: rect of chunk in field

Post by monte » Mon Aug 26, 2013 9:38 am

Because that would be too easy Bernd ;-)

Thanks!
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: rect of chunk in field

Post by Klaus » Mon Aug 26, 2013 12:32 pm

Monte, you do NOT have an external for this??? :shock:

:D

Locked

Return to “Engine Contributors”