I have had the idea in the past to use a property to define whether or not a 
field should place the cursor at the beginning, end or last selection of a 
field upon entering it. Shouldn't be hard to do. Make 2 properties in each 
field, focusSelection, lastSelection and read/update these accordingly upon 
openField and exitField (closeField mind you that only gets sent when something 
changes). Keep in mind that before getting the focusSelection upon openField 
you would need to check to see if the properties already exist and create them 
if they didn't. 

For extra credit, allow the user to change the behavior with a right click on 
the field object. I'd do it myself, but I am too doggone lazy. 

Bob


On Dec 6, 2010, at 7:11 AM, Walt Brown wrote:

> I have had to use "Select after char -1 of fld X". I was actually using it
> to place the cursor at various character positions in a field in a
> rawKeyDown handler - I was using predictive lookup in rawKeyDown as a field
> validation technique, playing around after David, Mark, and BvG's EXCELLENT
> LiveCode V session yesterday.
> 
> An example is in the last field of my attached test stack.
> 
> Walt


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to