hello all,

I need to make an entry box for a video timecode value.
the field comes up as "00:00:00:00" and the user can enter the timecode he
needs.

the first behaviour I need for this field goes like, when the user just
types "30404", the result should be "00:03:04:04"
so with each keystroke I delete the first digit, append a new one at the end
and shuffle them all around the ":" signs.
it works, but for the moment the field comes up with the cursor positioned
at the end. 
is it possible to select all the text in a field at beginsprite (that would
make this behaviour more intuitive) ?

the second behaviour I need goes like, when the user places his cursor p.e.
between the third and the fourth digit and types "12321", the result should
be "00:01:23:21"
so I must not insert but replace digits, and here I am lost. I am not aware
of an insert/replace property for textfields,
and I don't know how to find or monitor the position of the cursor in the
field.

any help appreciated,

sincerely,

Erik Phalet

mailto:[EMAIL PROTECTED]
+32/15/28 73 00

Option Facilities nv
Zandvoortstraat 8, 2800 Mechelen
Belgium



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to