[Gambas-user] Valuebox_Enter strange behaviour

Alain Baudrez a.baudrez at ...626...
Sat Nov 1 09:25:15 CET 2014


I use a valuebox for numbers and want to select to existing content upon
entering the valuebox.

I use the following code

Public Sub vBoxQty_Enter()
  Desktop.SendKeys("{[Shift_L][End]}")
End

When entering the valuebox using the tab-key, the content is selected.
When entering the valuebox with a mouseclick - what most people do -
nothing happens. The cursor just blinks in the valuebox but the content is
not selected.

But .... move the mouse away from the valuebox and then back over the
valuebox (without clicking) and the content automagically gets selected.

By design or a bug?


A.J.



More information about the User mailing list