Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp6 top-level menu disabled after modal...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00332262
Message ID:
00332379
Vues:
11
>>>It turns out the modals are completely innocent, it's only the popup that's causing the problem. The last lines of the popup are
>>>
>>>Activate Popup mypop
>>>Clear Popups
>>>
>>>Must need something else there...
>>
>>Are you sure about the CLEAR POPUPS, my shorcut menu doesn't have that. And the menus work OK if the form that's brought up with the shortcut menu isn't modal.
>
>Are you testing in a full-fledged TL/MPR/EXE environment?
>
>Anyway, thanks, removing CLEAR POPUPS does the trick. I forget why I added it, it was needed back in vfp5 to fix some problem. Now, I wish I'd documented why I added it...I know there was a reason...(scratching head)

Well, I got it to work, sort of. :)

I did:

cSaveMenuState = SET('SYSMENU')
SET SYSMENU OFF
DO FORM modalform
SET SYSMENU &cSaveMenuState

Side effects:
1) the screen jumps because of turning the menu off
2) the modal form is not completely modal anymore.
It's modal in respect to any other displayed form, but now you can still access the menu.
3) if you bring up another form, the new form (modal or not) is now semi-modal. Same as 2) above.

At least the menus are reactivated.

Thanks alot, Bruce! Now I've really got to try to figure out what's happening here! :)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform