Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SDI Form question
Message
From
26/07/1999 06:42:42
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
26/07/1999 06:24:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00245977
Message ID:
00245990
Views:
17
>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")
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform