Align a graphic with a specific character in a field?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
teacherguy
Posts: 373
Joined: Thu Dec 08, 2011 2:43 am

Align a graphic with a specific character in a field?

Post by teacherguy » Mon Dec 24, 2018 1:13 pm

Say I had a downward pointing arrow that I wanted to align over the top of a field, and the arrow would point to a specific found character in the field. And the location of that character could change, so it's location would need to be determined in order to center the arrow over it. Possible?

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2342
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Align a graphic with a specific character in a field?

Post by jmburnod » Mon Dec 24, 2018 2:05 pm

Hi,
You may use selectedloc after you have selected a char in the field.
Something like that
...
select char n of fld "myField"
get the selectedloc
....
Best regards
Jean-Marc

teacherguy
Posts: 373
Joined: Thu Dec 08, 2011 2:43 am

Re: Align a graphic with a specific character in a field?

Post by teacherguy » Tue Dec 25, 2018 1:43 pm

Perfect, thank you!

Post Reply

Return to “iOS Deployment”