Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More than one tab cycle
Message
From
05/08/2006 09:17:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/08/2006 08:33:17
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01142829
Message ID:
01143197
Views:
11
>Hi Hilmar,
>Hi Dragan,
>
>>> ...
>>>I want to some generic solution, which will work in VFP 9 and up. Unfortunately the When event does not >> ...
>>How about GotFocus() instead of When()? I am not sure if this one will allow a SetFocus(), but you can try.
>>
>>I guess the idea is for When() to execute before an object obtains the focus ("Am I allowed to receive the focus?"), and GotFocus(), after it receives the focus.
>
>A very good idea. I tried it yesterday but it didn't work, because when you set Visible = .F. for any object, it does not get the focus. But a I found out today, the When event does not work either if Visible is set .F. So your proposal made me thinking again, because I by using the When event I have the additional effect to avoid to use the Timer object at all. So I finally came up with a rather simple solution.
>
>In order to have Visible = .T. and in spite of that have the object to be "invisible" I just set Width and Height equal 0. It works!

I would have considered putting it "off-limits", something like: TextBox.Left = 1000, but making it too small to see is also an interesting option.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform