[dabo-users] Python/Dabo question- current cursor position in atext field

Author: <lalong1@bellsouth.net>

Posted: 2007-09-25 at 13:18:55

How do I get the current cursor position for a textfield?

I want get the current text value to the left of the cursor so that when

entering a numeric when the user presses the decimal key that is auto

adjusts the value "around" the decimal point.

For example, if the value is 1234.56 and the cursor is between the 2 and 3

and the user hits the decimal, it would auto change the value to 12. vs

12.34.56

I've already go the hooks to capture the decimal key, now I just need to

reformat the value.

Thanks,

Larry Long

No virus found in this outgoing message.

Checked by AVG Free Edition.

Version: 7.5.488 / Virus Database: 269.13.30/1030 - Release Date: 09/25/2007

8:02 AM

©2007 <lalong1@bellsouth.net>