The Window,menu,toobar circus 
Author Message
 The Window,menu,toobar circus

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)



Sat, 26 Aug 2000 03:00:00 GMT  
 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)



Sun, 27 Aug 2000 03:00:00 GMT  
 The Window,menu,toobar circus

I also have this.dock(0) in the init event of the toolbar that it's the
form.

Quote:

> 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


> > 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)



Sun, 27 Aug 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Report toobar

2. Size and menu Bar of Main Window

3. HELP: GPF browing menus in FP 2.6 Windows

4. Modal Windows and Menus

5. Question about Window menu

6. Putting a menu on a window

7. Questions: Pull-Down Menus and Window Screen Control

8. Help: reads, menus and windows.

9. Help: Reads, menus and windows.

10. Menus and the BROWSE window

11. VFP exe with menu bar WINDOW/FILE

12. FPD26-Rewrite Menu Bars w/Window Names ???

 

 
Powered by phpBB® Forum Software