Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top level modal?
Message
De
06/02/1999 11:06:20
 
 
À
05/02/1999 18:22:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00184136
Message ID:
00184697
Vues:
25
>Hi John,
>Remember we had a long and unfruitful discussion on hidden menus in top level forms. Well I eventually got it working just fine. Just a couple of minor tricks involved. But you raise a good point - the menus don't tie well to modal forms.
>Dave
>
>>Hi David,
>>
>>I have used this workaround before SDI forms were actually supported. While it will work, you may run into some issues if you need to tie a menu to the form.
>>
>>
>>>>>>>>>My understanding is that a top level form can't be modal.
>>>>>>>>>I think there are situations where a modal form is required or desirable when using a top level form. I can create and use a modal form "in top level form", but this looks awefull if the form is bigger than the top level form.
>>>>>>>>>
>>>>>>>>>Any ideas folks?
>>>>>>>>
>>>>>>>>Normally, top-level form is substitute for _SCREEN. Would you like or care having _SCREEN modal?
>>>>>>>
>>>>>>>No, you're right there. But I can have a modal form in _SCREEN of any size I like. In my app the top level form is quite tiny. It monitors phone calls etc. and always sits in the users desktop. If I want to interact with the user subsequently I've been using more top level forms. But sometimes, I believe quite rightly, I need a modal form which the user must fill in and answer OK/Cancel. This form is bigger than the top level form. So how do I do it?
>>>>>>
>>>>>>You can have only one top-level form in app. If you want to get some modal form in top-level form bigger than topform itself, then you may resize topform programmatically right before showing the modal form and resize it back whet modal form is closed.
>>>>>
>>>>>Actually I can have as many top level forms running in an ap as I like. Been doing it for ages, no problems.
>>>>>As for resizing - I could make that work, but it's sort of messy isn't it. M$ have modal forms hanging off top level forms all the time. Right click on My Computer. Click properties, click on 'Device Manager' tab. Choose 'Disk Drives' and click properties again. Voila, a modal form outside the top level form.
>>>>
>>>>Did you try Desktop property?
>>>No I didn't, 'tis a good thought. And...
>>>Yes, it works.
>>>Desktop= .T.
>>>ShowWindow= 1 In top level form
>>>And it's modal, yipee!
>>>Thanks Edward

May i get into this thread how you get the system edit menu options attached to a top-level form work properly with modal dialog box.

I have a big app with a top level menu, a resizable _screen with an attached toolbar, multiple modeless forms of different natures and, when necessary,
modal dialog boxes.

When i tried moving the app from _screen based to top-level based the dialog boxes became so modal that none of the app COPY/CUT/... menu options were available. I tried some tricks like calling the mpx file from the activate event of the dialog box... it changed nothing

We reverted the app to _screen. A pity not to be able from top-level :)

Has anyone a way out or did i miss something ?

François
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform