News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Add Rectangle Shape to Connector

Started by snsisk, July 01, 2008, 01:32:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vojo

yes....basically took his stencil and made enhancements and such.   He did some real nice work.

You know...you could put a control on the line so that you set where it intercepts the line and put a control on the text box so that you can place that as you wish.   would make it more universal.

snsisk


Attached is my first cut at a curved lined connector with a text box shadow.  I'm sure flaws exist in my approach.  Feel free to provide feedback on methods or techniques to improve the shape.

Thanks,

Steve

Visio Guy

Hi snsisk/Steve,

Looks like you set Selection to "Members First" instead of "Group Only" :)

Wanna keep the text level? Do this:


  • Open ShapeSheet for the text block
  • Insert > Section: Text Transform
  • In the TxtAngle cell, add this formula: = IF(BITXOR(Sheet.2!FlipX,Sheet.2!FlipY),1,-1)*Sheet.2!Angle
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

snsisk

#18
Chris,

The purpose of the "members first" was to enable the double click to open the text box for the shape.  I'm sure a better technique exists, but I'm still new at this shape development thing.  If a better technique exists, please let me know so I can use the best approach.

Is the reference to Sheet.2 the master sheet or the rectangle sheet? 

Pardon my ignorance, but what exactly is the statement doing?

Thanks,

Steve

Visio Guy

In the Format > Behavior dialog, there's a check box for Edit Group's Text. If you uncheck this, then the top-most sub-shape will take the text, instead of the group.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

snsisk

VisioGuy,

What is this statement (=IF(BITXOR(Sheet.2!FlipX,Sheet.2!FlipY),1,-1)*Sheet.2!Angle) doing?  Checking for portrait vs. landscape?

Thanks,

Steve

Visio Guy

It anti-rotates the text.

The simple form is:

TxtAngle = -Angle

which makes a lot more sense, but it breaks down if the shape gets flipped, thus the extra junk.
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 254 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1102KB.
Tokens: post-login.
Cache hits: 13: 0.00111s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 15.

[Show Queries]