Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top level modal?
Message
 
 
To
04/02/1999 21:18:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00184136
Message ID:
00184319
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform