Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Keyboard LeftMouse changes FieldState
Message
De
18/08/2005 08:20:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
BUG: Keyboard LeftMouse changes FieldState
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01041906
Message ID:
01041906
Vues:
79
When entering an EditBox I'd like to place the cursor at the end of the entered text (if any), so the user just has to press Enter and can start writing.

In order to do that, I placed
   * _EditBox GotFocus
   Keyboard '{LEFTMOUSE}'
   Keyboard '{CTRL+END}'

   * _EditBox Valid
   If Getfldstate(Justext(This.ControlSource),Juststem(This.ControlSource)) <> 1
	* Do all sorts of stuff to prevent the user from 
        * closing the form and leaving this record 
   Endif
This behaviour is not consistent with actually clicking the left mousebutton and pressing CTRL+END from the keyboard, which does not alter the state of the _EditBox.ControlSource.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform