Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Keyboard LeftMouse changes FieldState
Message
From
18/08/2005 08:20:44
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
BUG: Keyboard LeftMouse changes FieldState
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01041906
Message ID:
01041906
Views:
82
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)
Next
Reply
Map
View

Click here to load this message in the networking platform