Visio Guy

Visio Discussions => General Visio => Topic started by: Tom J on June 06, 2020, 07:14:58 AM

Title: Hide page tabs
Post by: Tom J on June 06, 2020, 07:14:58 AM
How do I hide the Page Tab Bar at the bottom of the screen? I'd like to reclaim the screen area used by the bar to increase my drawing area. I found that I can add the PAGE command to the Quick Access Toolbar and use that instead.
Title: Re: Hide page tabs
Post by: Paul Herber on June 06, 2020, 07:19:59 AM
I've never heard of any way of doing this.
Title: Re: Hide page tabs
Post by: Nikolay on June 06, 2020, 11:11:58 AM
Mee too. But does not seem to be impossible.
Theoretically, you could subclass the tabs window and hide it.
I would not do it though.
Title: Re: Hide page tabs
Post by: Paul Herber on June 06, 2020, 03:46:01 PM
Might not give you more active work area though, other code might assume the page tabs area is visible with a certain height.
Title: Re: Hide page tabs
Post by: Nikolay on June 06, 2020, 03:53:06 PM
You can try to resize work area as well "manually"  ;D
The whole thing is of course not supported and in no case recommended. But if somebody REALLY-REALLY wants to remove tabs, or maybe just out of the interest, well, he could try to.
Title: Re: Hide page tabs
Post by: vojo on June 06, 2020, 10:55:57 PM
This might help

https://social.technet.microsoft.com/Forums/office/en-US/7ca335be-ca1f-47e2-b634-a8930f7b49d3/hide-visio-page-tabs-interface?forum=visiogeneral

I assume using the drop down of the menus, minimize stencils, don't open format panel, etc and all the clumsiness that
entails is not enough???

also, might try floating the drawing window then maximize it

lastly, while I never tried it, there is a docmd  to open the selected shape - in your case, a group - in a new window.
That may give you more control.
Title: Re: Hide page tabs
Post by: Croc on June 07, 2020, 02:08:19 AM
ActiveWindow.ShowPageTabs = false in Immediate window does not help?
Title: Re: Hide page tabs
Post by: Nikolay on June 07, 2020, 02:36:21 AM
You are right, ShowPageTabs works perfectly! :o
Title: Re: Hide page tabs
Post by: Paul Herber on June 07, 2020, 07:42:47 AM
This all makes my response look rather useless! Sigh.  ::)
Title: Re: Hide page tabs
Post by: Nikolay on June 07, 2020, 08:27:26 AM
Well mine too  :D
Title: Re: Hide page tabs
Post by: wapperdude on June 07, 2020, 09:27:24 PM
Wow.  One some reply and two things learned. 

Cool.
Title: Re: Hide page tabs
Post by: Hey Ken on June 08, 2020, 08:10:47 AM
   It's more than just things learned.  This question brings back bad memories from almost 20 years ago when I was first learning Visio VBA. 

   Somewhere, somehow, while searching for a different solution, I accidentally turned off the page tabs.  I could NOT figure out how to turn them back on!  So I had to abandon the .vsd and hand-copy a multi-page, hyperlinked drawing to a new .vsd.  It wasn’t until many years later that I came across the ShowPageTabs trick.

   So when I saw the title of the thread, I knew exactly what the issue was, having learned it the hard way.  And I also found out the hard way what Application.Visible = False does.  Task manager came to my rescue for that mistake!

   - Ken

Title: Re: Hide page tabs
Post by: Tom J on June 08, 2020, 12:35:56 PM
Thank you everybody!!