Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In my earlier post on Data Graphics customization, I covered how to edit a text Graphic Item. A few people have asked for more information on how to deal specifically with Icon Sets since that is a place where there are most often domain-specific icons to be represented. We do have some documentation coming out on that, but while we wait for it to get published I’ll give you a few pointers to help you get started.
By way of example, I’ll take a look at the “Trend arrows” Icon Set. Here is an example of the icon set in action:
There are a couple of important things to point out about this callout:
To get started, you can follow the same steps described in the earlier post to make a copy of this master (this one will be called “Trend arrow 1” in the Drawing Explorer window) then open up your copy of the master’s ShapeSheet for editing. If you look at the “User-defined Cells” section in the ShapeSheet, you’ll see the cells that are specifically relevant to Icon Set:
From a shape development standpoint, you use msvCalloutIconNumber to drive your shape appearance. For this shape, that means that we’ll use that value to update all geometry, angle, and fill.
First, let’s look at geometry.
There are two Geometry sections. The Geometry 1 section provides the geometry for the arrow, while Geometry 2 represents the line. If you look at the NoShow sections highlighted in red, notice that they contain IF statements driven by the value in User.msvCalloutIconNumber. For Geometry 1, it is shown unless the value is -1 (which means no condition has been triggered) or 1, which is the only one that is supposed to use Geometry 2.
To adapt this Icon Set, you can either edit the existing geometry section or add a completely new one. To add a new geometry section, right click on the ShapeSheet window and select “Add Section” then choose Geometry. Often the simplest thing is to just create one Geometry section for each possible state, but when the designer of this shape put it together he limited it to two to save space in documents.
Next, let’s take a look at how the angle is set up.
The Angle cell contains an INDEX formula that again refers back to the User.msvCalloutIconNumber cell, setting the angle of the arrow or line.
Finally, the Fill Format of the callout is changed to update the color as well.
Here, we have the FillForegnd, FillBkgnd, and FillPattern cells driven off of User.msvCalloutIconNumber cell. The foreground and background fill colors are set through a set of nested IF statements (the whole thing is protected with a GUARD to prevent accidental formatting) that specify RGB values. You can change those color values to pull from the Theme accent colors instead of specifying RGB. The fill pattern is also changed based on an INDEX formula to get the pattern matched with angle. This is necessary because we are using a gradient and reusing the geometry section – when the angle changes we need to update the gradient so it looks consistent.
Hopefully this provides enough information to get people started. Obviously the more you know about working with masters and the ShapeSheet, the easier you’ll find this. Feel free to post any questions you have and I’ll try to answer them directly or in a future post.
Anonymous
July 14, 2006
PingBack from http://blogs.msdn.com/wmorein/archive/2006/06/15/632742.aspx
Anonymous
July 16, 2006
The comment has been removed
Anonymous
July 18, 2006
In the previous two posts on customizing Data Graphics, I covered general customization (using a text...
Anonymous
May 04, 2007
PingBack from http://www.visguy.com/2007/05/04/data-graphics-resources/
Anonymous
November 18, 2007
Good day, I have what may be a simple question. I am saving a Visio 2003 multiple page drawing as a web page, this web page includes the ctrl + click option for details view and a background.
When the web page is launched, the visio background image appears as a block surrounded by the default white page. I would like to have the background image cover the whole page and when I edit some of the Visio generated web page files (Such as VLM1.HTML) with MS Frontpage but when I save the changes the ctrl + click and hyperlink options are no longer functional on the page.
Is there a way to edit Visio 2003 generated web page(s) without losing the ctrl + click and hyperlink functions?
Thanks alot for any help provided.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in