Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal forms launched by dockable forms
Message
From
04/01/2021 07:08:06
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
03/01/2021 18:28:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01677685
Message ID:
01677738
Views:
86
>>
>>Okay. Beg your pardon.
>>You refer to .windowtype = 1
>>I to .Show(1)
>>.Show(1) will disable the menu, and that's the standard to the stuff I do all the time.
>>Because that's what I like to achieve for modal forms.
>>:)
>
>It's the same thing, actually. The menu is not deactivated in both cases:
>
>
>LOCAL ModalForm AS Form
>
>m.ModalForm = CREATEOBJECT("Form")
>m.ModalForm.AddObject("tb", "TextBox")
>m.ModalForm.tb.Visible = .T.
>m.ModalForm.Show(1)
>
>
>and attached picture.
>
>Meanwhile, I noticed that even with menu deactivation, the edit keyboard shortcuts are still functional in desktop modal forms. So, not everything is lost...
>
>Thanks again, Lutz, for your interest.

Try
LOCAL ModalForm AS Form

m.ModalForm = CREATEOBJECT("Form")
m.ModalForm.AddObject("tb", "TextBox")
m.ModalForm.tb.Visible = .T.
m.ModalForm.WINDOWTYPE = 1
m.ModalForm.Show(1)
does this disable the menu?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform