Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus
Message
From
18/12/2001 03:20:08
 
 
To
17/12/2001 03:34:44
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00594326
Message ID:
00595489
Views:
25
<>

I have looped through the _SCREEN object forms collection, I assign the form I want to a variable (loForm) and then try to set the focus. I also tried DO loForm.activate(), but that came up with the same error.

I don't know if you've seen the other thread with Hilmar Zonnefeld but he suggested using .show(). I tried that and set the focus to a control on the form and got the strangest behaviour of having a control with the focus (it was a button...pressing return ran the click event) but the form had no focus. It's only important because I have a timer control that is trying to trap CTRL-N...if the form does not have focus then it doesn't work.

My colleagues have warned against using modeless forms...they also warned against using combo boxes!!!! I'm not used to using modal forms for everything and I certainly will not accept life without combo's. But that's a different story.

Pablo
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform