Problem changing shape foreground color

N

Niranjan

Hi All,

I have a Visio template with few user created shapes using Visio drawing
tool. I want to programatically set the foreground color for these shapes at
runtime. I got handle to Fillforegnd cell of format section and set its
value to 2 (red say). Foreground color doesn't change, though the formula is
changed. Same is the result if this operation is carried out manually. Any
idea whats going wrong??

Help will be appreciated.

Thanks

Niranjan
 
D

David Parker [Visio MVP]

If you change the FillPattern from Solid, then Visio switches the foreground
and background color values around!
Maybe this is what is happening to you?
 
N

Niranjan

Thanks Al and David,

First for Al's question, yes its a group shape. I tried to set the formula
for foreground color for members individually too, but in vein.

David, I tried changing the Pattern from solid to other, but still the
foreground color doesn't change.

Thanks,

Niranjan
 
D

David Parker [Visio MVP]

The switch in cell values is not apparent in the FillFormat dialog, just in
the ShapeSheet window cells FillForegnd and FillBkgnd.
If you have the ShapeSheet window open, and have these cells in view, when
you use the UI to change from Solid to a two-tone fill, then you will see
what I mean.
 

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