Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox: mechanism for editing a list item in place?
Message
De
07/04/2008 12:51:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01308061
Message ID:
01308774
Vues:
18
>>>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.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform