Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Keyboard LeftMouse changes FieldState
Message
De
18/08/2005 09:07:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01041906
Message ID:
01041922
Vues:
32
Sergey,

Great workaround, thank you.

It's still a bug, though, right?

>Try
* EditBox GotFocus
>This.SelStart = LEN(This.Value)
>This.SelLength = 0
>
>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform