>>
>>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.
OffThere is no place like [::1]