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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide standard toolbar vfp9 1

Status
Not open for further replies.

waldeks

Technical User
May 30, 2007
6
Hallo everybody!!
Tell me, please, how can I remove standard toolbar from compiled program /exe/ in vfp9!
Thanks in advance!!
 
waldeks,

Here's the code I use:
Code:
IF WEXIST("standard")  && VFP "standard" toolbar
  HIDE WINDOW "standard" &&...seems can't be done with screen hidden.
ENDIF

There may be a better way...anyone?


Hope that helps,

Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Unfortunatly not done :( Toolbar still stays in application. What can I to do yet?
 
waldeks,

Is this what you are looking for:

Code:
RELEASE WINDOW "Standard"

pamela
 
Start VFP, uncheck standard in View->Toolabrs. Quit VFP. Now when you reopen VFP the standard Toolbar will not display as the resource file has it set as off.
Now recompile and create your Exe. Include the Resource File (foxuser.dbf) with the application.
When the .Exe is run the Standard toolbar will Not display.

 
Include the Resource File (foxuser.dbf) with the application."

Do Not read as Include in creating the Exe. Include with your exe when distributing...
 
Pthalacker,
It works great in VFP window. I put it in main program ..._app.prg and... nothing. Is the place wrong, maybe?
 
Waldeks

In your application, if you undock the standard toolbar, what name appears in the title bar?

It's that name that you should use in either mine or Pamela's examples.

Stewart
 
Steward,
My application names 'Fundu'. In fundu_app.prg i added line
RELEASE WINDOWS standard
Title bar not change, standard toolbar is still under main menu.
Waldek
 
Waldeks,

Sorry, I think I wasn't clear enough.

I meant, when you undock the toolbar in your application, what does the title bar of the toolbar say?

Stewart
 
In the beginning of your startup program (fundu_app.prg) put the following:
Set Resource to foxuser
As VFP stores the setting, whether to display the toolbar or not, in the Foxuser.dbf in the “ID” field. (TTOOLBAR), all you have to do is start VFP, Click View->Toolbars and uncheck Standard. Now shut VFP. The setting is saved in Foxuser.dbf. Now every time you start VFP the Toolbar will not be visible.
When you build the project into an Exe, VFP reads your settings and the Toolbar will not be displayed. When you distribute your app, include Foxuser.dbf with your app. That’s it…
 
Hi, Stewart!
This title is 'standard', of course. I shame :(.
Hi, Imaginecorp!
I have done everything like you wrote. In toxuser.dbf I have GTOOLBAR instead TTOOLBAR. When I start VFP, Toolbar isn't there,in application is there. Problems, problems, problems...
Waldek
 
Did you set the Resource to Foxuser.dbf in the Begining of your startup program?
Are you running the Exe on your development machine? i.e. where the foxuser.dbf is.
As far as I know, and I could be wrong, there is no other place to set toolbar off.
 
In an executable, you shouldn't have to do anything about the standard toolbar. It shouldn't show up unless you're running inside the Development Environment.

Tamar
 
Hello Waldeks, Sorry we have not been able to solve this...

I would try what Tamar has suggested, run your app ouside of VFP... Not from the command window and see if the Toolbar comes on.

The last thing that comes to mind is set:
Tools->Options->File Locations->Resource File = foxuser.dbf
Click set as default.
Now build and run your application.
You do know, I am grasping at straws here and hopefully this works... If not I do not know what else you can do.
 
Waldeks,

Code:
RELEASE WINDOWS standard
Title bar not change, standard toolbar is still under main menu.
Did you put quotes around "Standard"? Try it from the Command window and see what happens.

pamela
 
Dear Pamela!
From the command window 'release' works good. I don't know where put it into ..._app.prg.
Waldek
 
I can only confirm Tamar, the standard toolbar does not appear in an EXE, as long as you don't use a toolbar class in it. Are you using any fromework or the vfp wizards? Do you start the exe from within vfp? Or do you compile to app only, although your original post says /exe/.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top