Y
Yevgeny Barkovsky
One more newbie question.
I've written Viso add-in in C#, it's name, for example, "VisioProject1".
This add-in have class, for ex. "Class1" with
function, for ex., "MenuItemClick" to handle user-defined menu items clicks.
I've created user defined menu with some items (not inmortant - pop-up or
built in) using this approach:
if (objShape.get_SectionExists((
short )visio.VisSectionIndices.visSectionAction, 0) == 0)
objShape.AddSection(( short )visio.VisSectionIndices.visSectionAction);
objSection = objShape.get_Section((
short )visio.VisSectionIndices.visSectionAction);
shRowIdx = objShape.AddRow(
(short)visio.VisSectionIndices.visSectionAction, 0,
(short)visio.VisRowIndices.visRowAction );
objRow = objSection[ shRowIdx ];
objCell = objRow[ visio.VisCellIndices.visActionMenu ];
objCell.FormulaU = "\"%&User-defined action\"";
objCell = objRow[ visio.VisCellIndices.visActionBeginGroup ];
objCell.FormulaU = "TRUE";
objCell = objRow[ visio.VisCellIndices.visActionTagName ];
objCell.FormulaU = "\"UserMenu\"";
So, question here: what I must specify for the Action cell
(visio.VisCellIndices.visActionAction) to call my handler "MenuItemClick"
inside my add-in?
Any help with example will be greatly appreciated.
I've written Viso add-in in C#, it's name, for example, "VisioProject1".
This add-in have class, for ex. "Class1" with
function, for ex., "MenuItemClick" to handle user-defined menu items clicks.
I've created user defined menu with some items (not inmortant - pop-up or
built in) using this approach:
if (objShape.get_SectionExists((
short )visio.VisSectionIndices.visSectionAction, 0) == 0)
objShape.AddSection(( short )visio.VisSectionIndices.visSectionAction);
objSection = objShape.get_Section((
short )visio.VisSectionIndices.visSectionAction);
shRowIdx = objShape.AddRow(
(short)visio.VisSectionIndices.visSectionAction, 0,
(short)visio.VisRowIndices.visRowAction );
objRow = objSection[ shRowIdx ];
objCell = objRow[ visio.VisCellIndices.visActionMenu ];
objCell.FormulaU = "\"%&User-defined action\"";
objCell = objRow[ visio.VisCellIndices.visActionBeginGroup ];
objCell.FormulaU = "TRUE";
objCell = objRow[ visio.VisCellIndices.visActionTagName ];
objCell.FormulaU = "\"UserMenu\"";
So, question here: what I must specify for the Action cell
(visio.VisCellIndices.visActionAction) to call my handler "MenuItemClick"
inside my add-in?
Any help with example will be greatly appreciated.