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

Adding a button to a custom toolbar 1

Status
Not open for further replies.

Foxprosoldier

Programmer
Nov 5, 2004
7
CA
In the vfp menu I chose Toolbars then New then entered my new toolbar name. Then I chose customize and then highlighted the Print Preview line and dragged all of those controls onto my new toolbar. After doing that is there a way to put my own button on that toolbar with my own code in it. If not is there a different way to create a toolbar and drag all of the Print Preview controls onto it and then add my own button with my own code in it. Thanks in advance.
 
You can certainly create your own toolbar class and instantiate an instance of it within Visual FoxPro or an application. As for the Print Preview controls, Mike Lewis did a pretty decent job showing how this can be done easily in a FAQ he wrote:

Create your own report preview toolbar
faq184-4480




boyd.gif

SweetPotato Software Website
My Blog
 
Ok it is as I suspected then in order to add your own code and button to the custom toolbar you would have to create a regular toolbar and do the whole thing yourself. Thanks for pointing me in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top