Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox: mechanism for editing a list item in place?
Message
 
 
To
07/04/2008 12:51:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01308061
Message ID:
01308777
Views:
17
>>>>Hi Greg,
>>>>
>>>>Can you give me a quick idea of what have you used to determine current position? Just wondering now.
>>>
>>>In the AddOnly.vcx (Keypress method), I compare the original text to the modified text, if the SelStart is less then the length of the original test, ignore the keystroke. (Sorry for the lack of comments in this method.)
>>
>>I didn't look into your code at all, sorry. I just wanted to get an idea of how this is done. My first thought was to get the cursor position (either using CursorPos or something similar), then instantiate a textbox at this place, etc.
>>
>>Obviously you did it completely different. May be you can post some of the code here for lazy lurkers like me.
>>
>>Thanks again.
>
>In general, in the begin I save the current Value of the editbox. Then as the user types, I trap the keystroke, and using the SelStart property, I determine if they are type in the proper portion of the editbox. If they are not, the keystroke ignore otherwise it is place at the current cursor position.

We're talking about different things here. Check the thread's title, please.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform