B
Bernie
Hi
I developed a COM Addin for Visio 2003 and 2007.
In a COM Addin it is not possible to call a subroutine with RunAddon("Sub")
from a cell in a shapesheet.
Instead you have to use RunAddonWArgs ("QueueMarkerEvent" , "Sub")
The same is for menus, where you have to write
menuObj.AddOnName = "QueueMarkerEvent"
menuObj.AddOnArgs = "Sub"
Now, when a sub1 is started from the menu and inside the sub1 routine shapes
are created firing the cell
EventXFMod = RunAddonWArgs "QueueMarkerEvent" , "Sub2")
the subroutine Sub2 in not evaluated immediatly after the creation.
The QUEUEMARKEREVENT is blocked by the first call to sub1 and the events of
sub2 are queued and executed just after the first sub1 has finished.
Moving the shapes programatically, always firing the (nonexecuted)
EventXFMOD, can lead to unexspected results.
Has anybody a solution for this problem.
Bernie
I developed a COM Addin for Visio 2003 and 2007.
In a COM Addin it is not possible to call a subroutine with RunAddon("Sub")
from a cell in a shapesheet.
Instead you have to use RunAddonWArgs ("QueueMarkerEvent" , "Sub")
The same is for menus, where you have to write
menuObj.AddOnName = "QueueMarkerEvent"
menuObj.AddOnArgs = "Sub"
Now, when a sub1 is started from the menu and inside the sub1 routine shapes
are created firing the cell
EventXFMod = RunAddonWArgs "QueueMarkerEvent" , "Sub2")
the subroutine Sub2 in not evaluated immediatly after the creation.
The QUEUEMARKEREVENT is blocked by the first call to sub1 and the events of
sub2 are queued and executed just after the first sub1 has finished.
Moving the shapes programatically, always firing the (nonexecuted)
EventXFMOD, can lead to unexspected results.
Has anybody a solution for this problem.
Bernie