From: jeff houser
California - United States
Visual FoxPro 9
Classes and Objects
Tuesday, December 24, 2013 3:08:03 AM
This message was rated by:
How to Determine cursor's position in an EditBox.
My Scenario, if the users enters 20 characters and the string is then wrapped into 2-lines, how to detect the number of characters to the left of the cursor's position if the cursor is not at the end of the string. I'm successful in detecting the cursor's position post the keypress of right and left navigational keys. In this situation, I'm just incrementing or decrementing a numeric property. However, my difficulty lies with capturing the cursor's position post the keypress of the up or down navigational keys.
I'm currently using Bindevents for MouseUp and KeyPress to capture the editbox's "SelStart" value.
This is my first posting, so please let me know If additional information is needed.
Posted by jeff houser @ 12/24/2013 3:08:03 AM
Posted by Vilhelm-Ion Praisach @ 12/24/2013 5:23:39 AM
Posted by David Mustakim @ 12/24/2013 5:23:49 AM