Visio Guy

Visio Discussions => General Visio => Topic started by: goltoof on October 19, 2011, 10:13:41 PM

Title: Text Highlighting
Post by: goltoof on October 19, 2011, 10:13:41 PM
Is there a way to highlight text?   I don't mean selecting, or applying backgound color to the text box.  I just want the text itself to have a background color, like I can in word.
Title: Re: Text Highlighting
Post by: vojo on October 20, 2011, 01:11:54 AM
Assuming June the Second text tools for visio does NOT meet your needs....you could  look at this

Dont know what this will look like but

2 text boxes
   Text 1 box....insert field and use a user cell    user.textbox1       
   Text 2 box...insert field and use a user cell     user.textbox2
   text box 1...text at bottom
   text box 2...text at top
   put same string in user.textbox1 and user.textbox2
   visually line up the text on the screen  (text boxes should partially overlap in the vertical direction....so you can still select either)
   bring textbox 1 to front
   go into textbox2 shapesheet and set font 1pt larger than text box 1
   change font color to say gray

If you are happy with that, then
   group them
   make 1 user cell at group level    user.textbox     (it will hold the string....can do a props.cell and use docmd(1312) in double click event to callup editing window
   subselect each text box and set user.textbox1 = <groupid>!user.textbox   and user.textbox2 = <groupid>!user.textbox
   in textbox2....set the font point to   fontsize = <textbox1id>!fontsize + 1pt

save it to a stencil for reusue

Title: Re: Text Highlighting
Post by: aledlund on October 20, 2011, 02:00:03 AM
I'd start over here
http://blogs.msdn.com/b/visio/archive/2006/08/18/running-with-characters.aspx
second part is over here
http://blogs.msdn.com/b/visio/archive/2006/08/22/running-with-characters-part-2.aspx

al
Title: Re: Text Highlighting
Post by: McCandrew on October 12, 2020, 04:12:21 PM
The problem is much easier to solve than grouping two boxes.

1. Highlight the text.
2. Right click and select paragraph
3. Go to the "Text Block" tab.
4. In the lower part of the dialog box change the text background color.