Put cursor in fld "fld1"

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Put cursor in fld "fld1"

Post by shawnblc » Sun Jan 18, 2015 10:20 pm

How do I make sure the fld has the cursor in it to give the user a visual of which fld he/she should be using.

Not seeing anything in the dictionary for cursor that stands out.

Code: Select all

put the cursor into fld "fld1"

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Put cursor in fld "fld1"

Post by FourthWorld » Sun Jan 18, 2015 10:32 pm

The cursor is an indicator of the selection. Try this:

Code: Select all

select text of fld "fld1"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: Put cursor in fld "fld1"

Post by shawnblc » Sun Jan 18, 2015 10:35 pm

FourthWorld wrote:The cursor is an indicator of the selection. Try this:

Code: Select all

select text of fld "fld1"
Awesome! Why didn't I think of that? One day I'll be half as good as you LC gurus. Thank you sir.

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: Put cursor in fld "fld1"

Post by SparkOut » Sun Jan 18, 2015 10:51 pm

If you don't actually want to select any text that may be in the field, you can also
select before field "field1"
or
select after field "field1"
to set the cursor in place ready to type more.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Put cursor in fld "fld1"

Post by FourthWorld » Sun Jan 18, 2015 11:12 pm

shawnblc wrote:
FourthWorld wrote:The cursor is an indicator of the selection. Try this:

Code: Select all

select text of fld "fld1"
Awesome! Why didn't I think of that? One day I'll be half as good as you LC gurus. Thank you sir.
Happy to help. And don't worry, you'll pass us in no time. Right now we have a certain experience, but you have the enthusiasm only a newcomer can bring. That energy will take you much further than where any of us are. All in good time, we'll all be working for you. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply