Normal Topic ThrowFocus into a field with text (Read 688 times)
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
ThrowFocus into a field with text
Oct 24th, 2005 at 8:00pm
Print Post Print Post  
Hi all,

I want to throwfocus into a field that has text  in it, automatically positioning my cursor after the existing text, so the user can add to the automatic data.

How would I do this?
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: ThrowFocus into a field with text
Reply #1 - Oct 24th, 2005 at 8:05pm
Print Post Print Post  
Look in the Programming Guide on page 160. You'll find a command CursorPosition with an example of how to do what you describe.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: ThrowFocus into a field with text
Reply #2 - Oct 24th, 2005 at 9:38pm
Print Post Print Post  
Blair,

Ray just reminded me that we have an open issue that , due to the nature of ThrowFocus(), it overrides any  CursorPosition calls. We're looking into it to see if there's anything that can be done about it.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: ThrowFocus into a field with text
Reply #3 - Oct 24th, 2005 at 9:40pm
Print Post Print Post  
I was worrying I had a ForceRedraw() that was causing the problem ... oh well.

Maybe 1.1.5?  Grin
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: ThrowFocus into a field with text
Reply #4 - Oct 25th, 2005 at 6:19pm
Print Post Print Post  
Hey Blair,

Just saw your new avatar. You must be our only user with a database that won't fit in his car.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: ThrowFocus into a field with text
Reply #5 - Oct 26th, 2005 at 12:51pm
Print Post Print Post  
If each record was on a 8'5 x 11" piece of paper, you'd be right ...  Grin
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged