Author Topic: 2 colors callout line  (Read 4333 times)

0 Members and 1 Guest are viewing this topic.

kiler40

  • Sr. Member
  • ****
  • Posts: 328
2 colors callout line
« on: January 22, 2014, 04:29:03 AM »
Greetings All,
I`ve been searching for some time how to make 2 color line.
like in the picture
There was a similar topic in the forum, but i want to do it with one shape i`ve found somewhere in the visio stencils, so i can keep the behavior of the shape.
Later on i`ll make the color to change via the shape data, but i cant reach a solution to make it 2 color...
Anyone Please help !

Thanks in advance!


Andrei

kiler40

  • Sr. Member
  • ****
  • Posts: 328
Re: 2 colors callout line
« Reply #1 on: January 22, 2014, 04:29:55 AM »
i don`t know where the visio file went...

Jumpy

  • Hero Member
  • *****
  • Posts: 1061
Re: 2 colors callout line
« Reply #2 on: January 22, 2014, 04:39:14 AM »

kiler40

  • Sr. Member
  • ****
  • Posts: 328
Re: 2 colors callout line
« Reply #3 on: January 22, 2014, 04:57:23 AM »
Yes i`ve seen this. But for the second color ? With this i can change only one color...

Jumpy

  • Hero Member
  • *****
  • Posts: 1061
Re: 2 colors callout line
« Reply #4 on: January 22, 2014, 05:49:49 AM »
I did this once. I made a two colored line. One color could be changed in the GUI. That is the color I left black in the custom made linepattern. The other color in the linepattern was red and that was the color in the line later, too. So I could make many two-colored lines, but one color was always red.

Later, because I needed two colored lines, where each of the two colors had to be changebale, but only in a range of 5 certain colors, I made a line pattern for each color. Always the choosen color combined with black in the linepattern. I called one the background color the other the foreground color, and like you want to do, I could change both colors in the ShapeData.

Changing the forgroundcolor in the ShapeData changed the line color.
Changint the backgroundcolor in the ShapeData changes the LinePattern.

But that was only usable because I had a finite number of colors (here only 5).

kiler40

  • Sr. Member
  • ****
  • Posts: 328
Re: 2 colors callout line
« Reply #5 on: January 22, 2014, 06:08:47 AM »
This is interesting solution... i`ll give it a try. But still, if someone have other idea - Please share it.

kiler40

  • Sr. Member
  • ****
  • Posts: 328
Re: 2 colors callout line
« Reply #6 on: January 22, 2014, 06:26:06 AM »
Something is not right... cant understand why...
the pattern is not changing. the color also...

and if i putt it in a stencil, so i can use it in other documents, only the line pattern that is in use is copied.
« Last Edit: January 22, 2014, 06:29:00 AM by kiler40 »

Jumpy

  • Hero Member
  • *****
  • Posts: 1061
Re: 2 colors callout line
« Reply #7 on: January 22, 2014, 07:59:04 AM »
Problem is, that you have a grouped shape and you change the linepattern of the group, but not that of the lineshape inside the group.
Select shape. Go to behaviour. Under select options select "Group first" instead of "grtoup only". Click on shape and click on shape a second time to select subshape and look at it's shapsheet. If I change linepattern to "g" or sth. it works somehow.

vojo

  • Hero Member
  • *****
  • Posts: 1513
Re: 2 colors callout line
« Reply #8 on: January 22, 2014, 10:50:39 AM »
Another way to go is to modify Junes old stuff so that you can set the background color as well as foreground

so here is a trivial solution based on Junes stuff is attached

- select the connector attached
- select a color of interest
- right click and set color to front line or back line
- select a different color of interst
- right click and set color to back line or front line


kiler40

  • Sr. Member
  • ****
  • Posts: 328
Re: 2 colors callout line
« Reply #9 on: January 23, 2014, 03:32:28 AM »
this connector is basically 2 lines combined into one.
i`ve took the idea and put it into place.

Thanks for the help.

vojo

  • Hero Member
  • *****
  • Posts: 1513
Re: 2 colors callout line
« Reply #10 on: January 24, 2014, 04:14:08 PM »
the real trick is that the line calculations are taken care for you by those lines / Junes stuff.

That is the sizzle of it