Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SDI Form question
Message
From
27/07/1999 21:04:51
 
 
To
27/07/1999 03:58:07
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00245977
Message ID:
00246972
Views:
11
>>>>Hello all,
>>>>My applicacation use class menu get from the thread.
>>>>In Init event of main application class (base on custom), i create object oMenu from the class menu. The menu items appear in main Visual Foxpro window.
>>>>Now i want create a SDI form to make main application form, how can put menu items in my main form and how to hide main Visual Foxpro window ?
>>>>Thank in advance.
>>>
>>>Hi,
>>>
>>>I think you are referring to my MenuLib class library in the Files section.
>>>
>>>All you need to do is to add a menu to your SQI Form, e.g.
>>>
>>>loForm = CREATEOBJECT("YourSDIForm")
>>>loForm.AddObject("Menu", "Menu")
>>>
>>>Then just build your menu as normal
>>>
>>>loForm.Menu.AddObject("File", "MenuPad")
>>>loForm.Menu.File.Addobject("Save", "Menupad")
>>>loForm.Menu.File.Addobject("Exit", "Menupad")
>>>
>>>All of the above examples can also be done from the forms INIT method, for example:
>>>
>>>THIS.AddObject("Menu", "Menu")
>>>THIS.Menu.AddObject("File", "MenuPad")
>>>THIS.Menu.File.Addobject("Save", "Menupad")
>>>THIS.Menu.File.Addobject("Exit", "Menupad")
>>
>>Mark Hall,
>>Thank for your help.
>>Can your MenuLib class make popup menu ?
>
>Yes, it can do popups. There is an example in the demo, and it is covered in the documentation.

I tried successfull. Thank you very much.
Previous
Reply
Map
View

Click here to load this message in the networking platform