 | | From: | Paulo Pereira [APKomp Brasil] | | Subject: | Main Menu: How to make it disapear? | | Date: | Thu, 13 Jan 2005 08:57:50 -0200 |
|
|
 | Hi!
May be this is a very basic question. I tried several ways and I looked at it on the reference books but I could not find a way of making the main application menu disapear.
I know how to modify it: by using resources manager. I know how to replace it by another one: by assigning a mnu file to a mdi form. However, I could not find a way of making it disapear. This is a simple issue for the StatusBar and SpeedBar because they are properties of the _app object, but what I can do to make the main menu disapear.
Any help would be appreciated
Paulo Pereira APKomp Brasil
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: Main Menu: How to make it disapear? | | Date: | Thu, 13 Jan 2005 05:48:53 -0800 |
|
|
 | Paulo Pereira [APKomp Brasil] wrote: > Hi! > > May be this is a very basic question. I tried several ways and I looked at > it on the reference books but I could not find a way of making the main > application menu disapear. > > I know how to modify it: by using resources manager. > I know how to replace it by another one: by assigning a mnu file to a mdi > form. > However, I could not find a way of making it disapear. > This is a simple issue for the StatusBar and SpeedBar because they are > properties of the _app object, but what I can do to make the main menu > disapear. > > Any help would be appreciated
Make sure your forms don't have anything in the MENU property ...
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | David Stone | | Subject: | Re: Main Menu: How to make it disapear? | | Date: | Thu, 13 Jan 2005 12:03:09 -0800 |
|
|
 | "Ken Mayer [dBVIPS]" wrote:
> Make sure your forms don't have anything in the MENU property ...
For SDI, yes, but in an MDI app there will still be a menu associated with the frame window, and I think Paulo is talking about an MDI app.
David
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: Main Menu: How to make it disapear? | | Date: | Thu, 13 Jan 2005 12:42:28 -0800 |
|
|
 | David Stone wrote: > "Ken Mayer [dBVIPS]" wrote: > > >>Make sure your forms don't have anything in the MENU property ... > > > For SDI, yes, but in an MDI app there will still be a menu associated with the > frame window, and I think Paulo is talking about an MDI app.
Well, in that case, create a blank .mnu file and set that for the application's menu ...? I am not sure why anyone would want an MDI application without a menu.
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | Paulo Pereira [APKomp Brasil] | | Subject: | Re: Main Menu: How to make it disapear? | | Date: | Fri, 14 Jan 2005 17:47:00 -0200 |
|
|
 | Well...! The bar is blank but the space is still there. The reason I wanted that, it is that I want to gain some space. Imagine a simple application for touch-screen, etc...
Paulo Pereira
|
|
 | | From: | Ken Mayer [dBVIPS] | | Subject: | Re: Main Menu: How to make it disapear? | | Date: | Fri, 14 Jan 2005 11:55:35 -0800 |
|
|
 | Paulo Pereira [APKomp Brasil] wrote: > Well...! > The bar is blank but the space is still there. > The reason I wanted that, it is that I want to gain some space. > Imagine a simple application for touch-screen, etc...
If you want to save space, take a look at the shell() function ...
Ken
-- /(Opinions expressed are purely my own, not those of dataBased Intelligence, Inc.)/
*Ken Mayer* [dBVIPS] /Golden Stag Productions/ dBASE at goldenstag dot net http://www.goldenstag.net/GSP http://www.goldenstag.net/dbase
|
|
 | | From: | Roland Wingerter | | Subject: | Re: Main Menu: How to make it disapear? | | Date: | Fri, 14 Jan 2005 21:18:00 +0100 |
|
|
 | Ken Mayer [dBVIPS] wrote: > Paulo Pereira [APKomp Brasil] wrote: >> Well...! >> The bar is blank but the space is still there. >> The reason I wanted that, it is that I want to gain some space. >> Imagine a simple application for touch-screen, etc... > > If you want to save space, take a look at the shell() function ... ------ See sample below.
Roland
local f shell (false, false) && hide dbase framewindow f = new Form() f.mdi = false f.windowstate = 2 // maximized f.pb = new pushbutton(f) f.pb.onClick = {; form.close() ; shell(true, true)} f.open() return
|
|