Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot activate a form
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Cannot activate a form
Miscellaneous
Thread ID:
00419836
Message ID:
00419836
Views:
50
Hi,

I need help with the following:
I have a toplevel form that, when minimized, is made invisible and remains only in the systray until some event happens. Then I call the show event where I set the properties windowstatus to 0 and visible to .t.
The problem is that the form opens ok, but does not became 'active', and sometimes it only flash before going behind another active window (but not allways, just sometimes, I think allways the first time).
I tried activate(), the api functions bringwindowtofront, animatewindow, showwindow with no luck. I'd also tried setting the property allwaysontop to .t. and then back to .f.
I think I'm not getting the correct hWND for the API calls, cause animatewindow and showwindow shows me only the title of the window, no the whole window, although when I move it it moves a region corresponding to the full window. (I used _WHToHWnd(_wFindTitl(thisform.caption))).
Well, as you can see I'm kind of lost firing shots in the dark, can anyone point me to the right direction?

Thanks in Advance
Hugo
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Reply
Map
View

Click here to load this message in the networking platform