Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal Forms Hide Incorrectly
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00601653
Message ID:
00601681
Views:
25
This message has been marked as the solution to the initial question of the thread.
Yep. I've had that happen as well. see Forum: Visual FoxPro Category: Forms & Form designer Title: Re: Modal calling modal calling modal, lost on way back Thread #595801 Message #595887

I just put:
thisform.visible = .f.
thisform.visible = .t.
right after the DO FORM call. Seems to work.


>Hi everyone,
>
>I've had this particular problem bite me a number of times over the years and I've never been able to completely track it down. I'm desperate to get this fixed now, as it's holding up my entire app.
>
>The problem appears to be a Zorder type issue. In two particular functional groups of forms, all the forms appear and work just fine, but when you release the active modal dialog, the parent modal dialog (the one that called this one) jumps BEHIND it's parent dialog. It's still modal, therefore, if you can't get to it you're stuck.
>
>I'm doing a ThisForm.Hide() in the modal dialogs instead of a Release() so that I can collect data off of the form in the parent dialog. I then release it immediately.
>
>You can bring the correct dialog forward by clicking on the title bar (only) of the form if you can get to it. You can also ALT-TAB to another app and back again, which "repaints" the VFP app with the correct form on top.
>
>Here are the details:
>
>MainForm calls Form1, which calls Form2, which calls Form3, which calls Form4
>
>MainForm = main app top-level form
> .Desktop = .T.
> .ShowWindow = 2 - As Top-Level Form
> .WindowType = 0 - Modeless
> main form has several DBI Technology ActiveX controls on it
>
>Form1 = modal data dialog containing another DBI ActiveX listview control
> .Desktop = .T.
> .ShowWindow = 1 - In Top-Level Form
> .WindowType = 1 - Modal
>
>Form2 = modal maintenance dialog containing only native VFP controls
> .Desktop = .T.
> .ShowWindow = 1 - In Top-Level Form
> .WindowType = 1 - Modal
>
>Form3 = modal maintenance dialog containing only native VFP controls
> .Desktop = .T.
> .ShowWindow = 1 - In Top-Level Form
> .WindowType = 1 - Modal
>
>Form4 = modal maintenance dialog containing only native VFP controls
> .Desktop = .T.
> .ShowWindow = 1 - In Top-Level Form
> .WindowType = 1 - Modal
>
>Help!! =)
>
>Thanks,
>
>Steve
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform