Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal Forms Hide Incorrectly
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00601653
Message ID:
00601667
Vues:
25
Thanks, Tracy. Unfortunately, I tried it with the same results.

>I use a .visible=.f. instead of the hide().
>
>Tracy
>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform