Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SDI form refuses to show on top
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00348270
Message ID:
00348362
Views:
28
>Hi all,
>
>my applications _SCREEN contains a form (frmpvdesktop) with an IExplorer browser control (ohtml). The forms AlwaysOnBottom property is .T. The applications main menu launches some SDI forms. The problem: the first form that is launched after the app is up is behind the _SCREEN. I have tracked the events and found that following happens after the menu item to call the form is clicked:
>
> screen.LostFocus()
> screen.Deactivate()
> newform.pgf1.page1.Activate()
> newform.Activate()
> newform.GotFocus()
> newform.pgf1.page1.lsteigenschaften.GotFocus()
> newform.pgf1.page1.lsteigenschaften.LostFocus()
> newform.LostFocus()
> newform.Deactivate()
> frmpvdesktop.Activate()
> frmpvdesktop.GotFocus()
> frmpvdesktop.ohtml.GotFocus()
>
>This happens only when the first time a form is called. When the form is closed and relaunched or another SDI form is launched, they are always on top. What activates the background form?
>
>Any ideas?

You're missing the Init() and Show() in your analysis, so maybe the firing sequence is fouled up somehow. Also, you could try putting a thisform.show() in the gotfocus of the form or control on form, just to see if that would help...

And another idea, does the form appear on top *without* the activex on the SDI? (Just to see if that's causing a problem)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform