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

Click here to load this message in the networking platform