Author Topic: Foregrounds that resize with backgrounds  (Read 4604 times)

0 Members and 1 Guest are viewing this topic.

petroleumj

  • Newbie
  • *
  • Posts: 3
Foregrounds that resize with backgrounds
« on: June 24, 2008, 04:49:23 PM »
Is there a way to have your foreground resize itself if you switch from a 8.5x11 background to a 11x17 sized one?

I have a title block that needs to change layout between letter and tabloid sized paper.  SO I have two backgrounds.  ON my foreground, if I switch the background, the title block changes, but the drawing area stays the same.  The paper size also remains unchanged.

Help!


Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1716
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Foregrounds that resize with backgrounds
« Reply #1 on: June 24, 2008, 05:54:37 PM »
Hmmm, I've always set the backgrounds up so that they resized with the foregrounds...
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Lars-Erik

  • Sr. Member
  • ****
  • Posts: 278
Re: Foregrounds that resize with backgrounds
« Reply #2 on: June 25, 2008, 01:11:15 AM »
You could do something like this in the shapesheet of your background:

ThePage!Width

That way it will resize the BACKGROUND to match the width of the active foregrounds width.
I don't see a reason to make it work the other way around, your main and thus leading page should be the foreground.
That means that the background should respond to settings users make to the foreground.
At least thats what I think, if you still feel you need to control it the other way around I'm interested whats your using it for.

- Lars

petroleumj

  • Newbie
  • *
  • Posts: 3
Re: Foregrounds that resize with backgrounds
« Reply #3 on: June 26, 2008, 02:54:25 PM »
That only works if every page uses the same size background, right?  If I have 3 foregrounds, each is a different size, and they all use the same background, which foreground does the background get its size from?

Lars-Erik

  • Sr. Member
  • ****
  • Posts: 278
Re: Foregrounds that resize with backgrounds
« Reply #4 on: June 26, 2008, 04:36:22 PM »
The one its attached to ( The one currently showing )
ThePage gets the active page !Width will get that width.
So that code in the width of your background shapesheet will make your background resize to always match the active foreground page.