Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic focus on a window
Message
From
01/09/2003 20:11:49
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00825144
Message ID:
00825146
Views:
20
Hi Ionut,
>
>I have a code like this one:
>
>_screen.hide
>do form form1
>
>
>now form1 is a formset containing 2 forms. At every Activate event of a form there is a GetFocus api. Somehow this function doesen't work. If i eliminate the _screen.hide it works. Why?
>
try it:
_screen.visible = .F.
do form form1
read events
return

procedure yourformset.form1.activate  && <-- use it on your form1.activate method to send the focus for the properly window (i used form2 as sample)
show window (thisformset.form2.name) top
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform