The Window,menu,toobar circus
Here is the way I do it in my application. I have a main menu. In the
setup of the menu, I do:
PUSH MENU _msysmenu
DO FORM yourform
The menu cleanup code has:
READ EVENTS
POP MENU _msysmenu
The exit option of the menu has:
CLEAR EVENTS
The activate method of my form contains code that hides the system menu,
hides the VFP toolbars, and shows the new menu.
Hope this helps.
Jan
Quote:
> Hello All,
> I am having difficulty getting menus, formsets and toolbars to work
> together in VFP5. (Last time I did this was in VFP2.6)
> I have a formset which consists of one form and one toobar. When the
> application runs, I want the foxpro window to go away, and to just see
> my one form, the toobar, and my menu. I've tried so many things I can't
> even begin to enumerate them. (I recall this was a tricky thing in 2.6
> as well). I THINK I want to have my one from as a Top-Level Form
> (ShowWindow=2). I have set this and got my menu to appear by having a:
> DO mymenu.mpr WITH this, .t.
> in the init for the form.
> In the init for the formset I have a
> Application.visible=.f.
> which takes care of the foxpro window. But two things remain:
> 1. I can't seem get the toobar to appear
> 2. Foxpro renames the form (used to be called form1 in the formset) so
> all my references to thisformset.form1.bla.bla... don't work anymore.
> Am I going about this in the wrong way? Your comments/suggestions would
> be most appreciated.
> Lauren Clarke
> (remove "_nospam_" to send mail)