shapesheet programming - refresh problem

S

Skyhawker

I filled in two action rows:
SETF("Actions.C1",1)+SETF("actions.c2",0)+SETF("FillForegnd","3") / Menu="A1"
SETF("Actions.C2",1)+SETF("actions.c1",0)+SETF("FillForegnd","4") / Menu="A2"
If I right click "A1" on the shape window the Fill color changes but the
color of the shape does not change.
The same happens when I click "A2",
you can see the new fillcolor clicking Format/Fill, but the shape does not
chenge.
What do I have to do
Skyhawker (novice)
 
P

Paul Herber

I filled in two action rows:
SETF("Actions.C1",1)+SETF("actions.c2",0)+SETF("FillForegnd","3") / Menu="A1"
SETF("Actions.C2",1)+SETF("actions.c1",0)+SETF("FillForegnd","4") / Menu="A2"
If I right click "A1" on the shape window the Fill color changes but the
color of the shape does not change.
The same happens when I click "A2",
you can see the new fillcolor clicking Format/Fill, but the shape does not
chenge.
What do I have to do
Skyhawker (novice)

What shape is it? Some shapes have their color controlled by another part of the shape,
especially if it's a grouped shape, or the color may be determined by a theme.
 
S

Skyhawker

Hi Paul

it is a network shape, used as a symbol for example an ethernet network.
And I want to define defiine different colors for different network types.
It is a grouped shape.

Thank you for any answer

Claude
 
P

Paul Herber

Hi Paul

it is a network shape, used as a symbol for example an ethernet network.
And I want to define defiine different colors for different network types.
It is a grouped shape.

The next bit depends partly upon what version of Visio you are using:
Ensure you have the Drawing Explorer open (View -> Drawing Explorer)
Select the appropriate page and shape within the explorer, you will see that the Ethernat
shape is made up from several shapes (the number depends upon the Visio version).
Select each part of the shape in turn and use menu Format -> Fill.
Foer one shape it will show you the fill colors and patterns used for the shape (the other
parts of the shape will show other color information - ignore them). Now you've found the
appropriarte shape carrying the fill information you can change it.
 
S

Skyhawker

Hi Paul,

thank you for the answer, I am using Visio 2003.
I will try like you told me.
Will do that next monday (I'm on site acceptance test just now)
 
S

Skyhawker

Hi Paul,

I can ungroup the ethernet shape and can change the Fillcolour, no problem.
I can programm the actions (see above) on that part of the shape, it works.
But when I group again, the actions for the master shape are lost.

So what I want to do is:

Modify the mastershapeS action rows, so that I get different fill colours,
when I click the approbiate menu on the shapes context menu.

So if I click "DCS" I want the Fill colour yellow, if I click "Profibus" I
want the Fill colour blue.

Anybody any ideas?

Thanks everybody who cann help
 
S

Skyhawker

Hi Paul,

I hope, I don't get on your nerves.

Using the drawing explorer I found the shape, which is responsible for the
Fillcolour.

But if I progranm my actions (see above) within this shapesheet, it does not
work. My menu items (DCS/Profibus) do not appear on the shapes context menu.
Somebody told me I can use the master shapesheet, program my actions and the
say 'redraw'. What do you think. Is there an SETF command for 'redraw'.


Thanks for any answer.
 
P

Paul Herber

Hi Paul,

I hope, I don't get on your nerves.

Only my dentist does that!
Using the drawing explorer I found the shape, which is responsible for the
Fillcolour.
But if I progranm my actions (see above) within this shapesheet, it does not
work.

Well, if you are doing this within VBA then you will have ato access the subshape via its
index number.
 

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