A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

link custom property with shape property



 
 
Thread Tools Display Modes
  #1  
Old October 11th, 2006, 11:11 PM posted to microsoft.public.visio.general
Dennis
external usenet poster
 
Posts: 1,222
Default link custom property with shape property

Hi,

We want to use Visio as a prototyping tool for designing GUI windows.

I want to make a Visio template with shapesheet for the project so that they
can just drag&drop a default window from the shapesheet. With the shape I
want to set some custom properties, like window title. Now that's not a
problem by using a field in the shape's text.
I would also like to make the window size adjustable using custom
properties. Here's the problem, we use pixels to define width & height, not
mm (or any other unit which Visio does provide). It's not an option to set
the working unit to pixels.

My idea was to make a custom property for width and height and link these to
the actual size properties of the shape, using a certain ratio, which I can
calculate.

Is this possible? So when a designer adjusts the window size using a custom
property, the shape will actually resize to those dimesions using the
mentioned ratio with a formula?
So basicly, I want to link a custom property with geometric properties of
the shape.
  #2  
Old October 12th, 2006, 12:43 AM posted to microsoft.public.visio.general
Chris Roth [MVP]
external usenet poster
 
Posts: 254
Default link custom property with shape property

Hi Dennis,

If you want to size the objects "by number only", you can set up something
like this:

Prop.Width = 1024
Prop.PixelsPerInch = 72

Width = GUARD( Prop.Width / Prop.PixelsPerInch )

GUARD will make it so that the users can't resize graphically. If you want
both "by number" and "by handle" sizing, then let me know. That's more
complicated, especially with the ratio...

--
Hope this helps,

Chris Roth
Visio MVP

More Visio shapes, articles, development info and pure diagramming fun at:
www.wanderkind.com/visio


"Dennis" wrote in message
...
Hi,

We want to use Visio as a prototyping tool for designing GUI windows.

I want to make a Visio template with shapesheet for the project so that
they
can just drag&drop a default window from the shapesheet. With the shape I
want to set some custom properties, like window title. Now that's not a
problem by using a field in the shape's text.
I would also like to make the window size adjustable using custom
properties. Here's the problem, we use pixels to define width & height,
not
mm (or any other unit which Visio does provide). It's not an option to set
the working unit to pixels.

My idea was to make a custom property for width and height and link these
to
the actual size properties of the shape, using a certain ratio, which I
can
calculate.

Is this possible? So when a designer adjusts the window size using a
custom
property, the shape will actually resize to those dimesions using the
mentioned ratio with a formula?
So basicly, I want to link a custom property with geometric properties of
the shape.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.