Shape Right mouse action

S

Saritha

Hi,
How to add an item into Action section...(Visio Active X Control,thr' code)
i mean how to add Action row programatically...and want to display Windows
form if i click on that?
Thanks
Saritha.
 
S

Saritha

-----Visio Active x Control
Hin,
able to add Action Row,but how to set Action to show windows form?
menuAction=???
actionCell =
visShape.get_CellsSRC((short)Microsoft.Office.Interop.Visio.VisSectionIndice
s.visSectionAction,actionRow,

(short)Microsoft.Office.Interop.Visio.VisCellIndices.visActionAction);

actionCell.FormulaU =?????????????

Thanks Saritha.
 
H

Hin

You can set the action cell to call the addon and in the addon show the windows
form.
 
S

Saritha

am also trying like that only by setting action(actionCell.FormulaU) :
runaddon... but nothing is happening....
 
S

Saritha

Got it.
First we've to add that Addon to the collection. then only we can set
formulaU of actioncell to Runnaddon.....
Saritha.
 
B

Blair [MS]

In the Visio 2003 SDK Code Librarian there is a sample that uses the
"QueueMarkerEvent" to send a message. This may be better suited to
solutions with the ActiveX control. In the host container, use AddAdvise to
listen for the specific message sent when the user right clicks on a shape.
There is also a sample application (Office Space Plan) in the SDK that shows
how to implement your own context menu in response to the Right Mouse Click
on a shape.

Blair
 

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