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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|