Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A menu bar in my own window

Status
Not open for further replies.

Qwark

Programmer
Sep 26, 2000
59
NL
How can I bring a menu bar in my onw window. By testing my program my menubar comes in the Foxpro window. That's not beautiful. Is it possible te replace the menu bar to my own window? If the answer is Yes How.
It doesn't matter when I build an EXE. Foxpro made a special run window, or something like that. The menu bar is placing in that special window to. Is it possible to remove that special foxpro window, I only want to see my own window.

Thanks,

Qwark
[sig][/sig]
 
Hi Qwark,

How can I bring a menu bar in my onw window?

Check Out the DEFINE MENU Command in the VFP Help file, particularly the IN WINDOW clause. There is also a good example of building a menu.

Is it possible to remove that special foxpro window?

One method is to attach a text file named Config.Fpw to your project as an Other File. The text file should contain this line of text:
SCREEN = OFF

Another method is to include this line of code as the first executable line of code in your program:
_SCREEN.VISIBLE = .F.
But you will get a screen flicker using this method. [sig]<p>Jon Hawkins<br><a href=mailto: jonscott8@yahoo.com> jonscott8@yahoo.com</a><br><a href= > </a><br>Focus on the solution....Not the problem.[/sig]
 
Hi!

Make your own window &quot;as top-level form&quot; (It is property 'ShowWindow' of form). Than all other forms should have set &quot;In Top-Level Form&quot;.
To hide VFP window use _Screen.Visible = .F. somewhere at start of your application. You may also do this by including 'SCREEN=OFF' line in the config.fpw file (and include that file into project), that is better because it never show screen at startup.
You will need also modify your menu to specify that it should be shown in the specific window. To do so, open menu in menu designer, in the dialog box called from 'View\General Options...' menu item check 'Top-Level form'.

Hope this helped. [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top