How does one format divider lines to appear after a hard return i.

L

Lady G

In Visio 2000, you were able to type text in an org chart shape, and
depending on where the hard return [enter] was positioned, when you turned on
the divider line, it appeared under the line where the hard return was. Thus
you were able to have more than one line of text on top of the divider line.

In Visio 2003, this seems to be restricted to a single line of text above
the divider line. Is there a way to override this default?
 
W

WapperDude

Yes, the default may be modified, but perhaps not as nicely as you're used
to. It requires changing the shape sheet, which means you'll need to save
your modified shape on a custom stencil.

If you bring up the shapesheet for the shape in quesion, you will need to
add two rows and modify a third. This solution will always place the line
above a single row of text. I could not find a way to detect a "carriage
return / line feed character" to make this more elegant. Also, I only show a
solution for normal orientation.

In the User Defined Cell section, add two new rows, then--

Re-name the 1st new row as User.TextHeight and set the value =
TEXTHEIGHT(The Text, TxtWidth)

Re-name the 2nd new row as User.NewDividerOffset and set the value =
LocPinY-User.TextHeight/2+User.CalcTextLineHeight.

(The User.CalcTextLineHeight should be an existing entry.)

Now, the row named User.DividerOffset must be modified. As is, it should
look like
=MAX(0,IF(TextDirection=0,(Height-((Height-TEXTHEIGHT(TheText,TxtWidth))/2)-User.CalcTextLineHeight),(Width-((Width-TEXTHEIGHT(TheText,TxtHeight))/2)-User.CalcTextLineHeight)))

It needs to become
=MAX(0,IF(TextDirection=0,User.NewDividerOffset,(Width-((Width-TEXTHEIGHT(TheText,TxtHeight))/2)-User.CalcTextLineHeight)))

That should do it.

Hope this helps.

Wapperdude
 
W

WapperDude

If the above change is acceptable, there are some additions that will allow
Menu selective placement of the line to be high, low, or centered via check
boxes.

Wapperdude
 
L

Lady G

Thanks very much for your assistance (I had to teach myself about shapesheets
in order to use your answer to my dilemma *grin*).

Can you make the next bit a little easier on me and tell me where I need to
go to add in the menu selections you refer to below?

Lady G.
~~~~~~~~~
 
W

WapperDude

Certainly! I have the details at home and can send to you later.

Glad you were able to sort thru the shapesheet!

Wapperdude
 
W

WapperDude

Hi Lady G --
Below are the entries to the shapesheet needed to move the location of the
separator line. The process involves adding a row to the User-defined Cells
section and three rows to the Actions section, plus, an optional, cosmetic
change to one row of the Actions section.

Add row to User-defined Cells:
Add three rows to Actions Section:
Then, for cosmetic presentation of the Menu, modify the row, typically
Row_9.
The Menu entry should read:
Modify to read:
The underscores will place a menu line above the entry.

Hope this helps and proves to be satisfactory.

Enjoy!

Wapperdude
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top