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

Re-open Print Preview Toolbar in Code???

Status
Not open for further replies.

VBFOXDEV35

Programmer
Mar 26, 2001
77
US
Hello all. Here is an interesting question. How do you re-open the VFP report toolbar from within your application if the user accidentally closes it before closing the form? I have been researching this all day and I cannot find the answer. If you close the toolbar, you menu bar is not active at all to select anything? Is there a way around this? Any help would be greatly appreciated.

Thanks

Arty

P.S. Just want to thank Ramani again for the great help on my last post!!!
 
Hi!

Use the resource file (foxuser.dbf by default). Open the report first time when running the app in development environment with resource file set. Open the preview toolbar and position it. Than set resource off, open the foxuser.dbf file in a browse window, find a record for preview tollbar and change the ReadOnly field value to .T. Use that resource file with your application. Next time when user close toolbar, this state will not be remembered because record in resource file is marked to be not alterable.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
OK, the foxuser is giving me a problem. Is there a way in code to have the toolbar immediately be under the menu bar without the user double clicking or moving the tool bar there. I ask this only because I do not want the user to accidentally close the preview window. Thanks all.
 
HI
You can dock the tool bar in the top or at the bottom. That could be the solution.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top