D
dani
Hi there
I was trying to handle the QueryCancelConvertToGroup event which I need
in my own add-in.
I have registered the event using the AddAdvise method, but then, when
grouping two shapes, I never get the QueryCancelConvertToGroup event,
just the "shape added" event.
Then I tried it with the event monitor which comes with the Visio 2002
SDK, opened a new document and tried to group two rectangles, but again,
the QueryCancelConvertToGroup event was not fired.
But surprisingly, the QueryCancelUngroup was fired when ungrouping the
rectangles again.
Does anyone have an explanation for this?
below is the output of the event monitor....
thanks for any help
Daniel
1049 >EnterScope Group [1051;0;Group]
1050 | ShapeAdded Sheet.3 [/doc=1 /page=1 /shape=Sheet.3]
1050 | SelectionAdded Sheet.3 [/doc=1 /page=1]
1051 | ShapeParentChanged Sheet.1-> Sheet.3 [/doc=1 /page=1 /shape=Sheet.1]
1051 | ShapeParentChanged Sheet.2-> Sheet.3 [/doc=1 /page=1 /shape=Sheet.2]
1052 <ExitScope Group [1051;0;Group]
1296 >EnterScope Ungroup [1052;0;Ungroup]
1298 | QueryCancelUngroup Sheet.3 [/doc=1 /page=1]
<-------- Event Monitor's response is: False (don't cancel)
1300 | ShapeParentChanged Sheet.1-> ThePage [/doc=1 /page=1 /shape=Sheet.1]
1300 | ShapeParentChanged Sheet.2-> ThePage [/doc=1 /page=1 /shape=Sheet.2]
1301 | BeforeSelectionDelete Sheet.3 [/doc=1 /page=1]
1303 | BeforeShapeDelete Sheet.3 [/doc=1 /page=1 /shape=Sheet.3]
1304 | MustFlushScopeEnded
1305 <ExitScope Ungroup [1052;0;Ungroup]
I was trying to handle the QueryCancelConvertToGroup event which I need
in my own add-in.
I have registered the event using the AddAdvise method, but then, when
grouping two shapes, I never get the QueryCancelConvertToGroup event,
just the "shape added" event.
Then I tried it with the event monitor which comes with the Visio 2002
SDK, opened a new document and tried to group two rectangles, but again,
the QueryCancelConvertToGroup event was not fired.
But surprisingly, the QueryCancelUngroup was fired when ungrouping the
rectangles again.
Does anyone have an explanation for this?
below is the output of the event monitor....
thanks for any help
Daniel
1049 >EnterScope Group [1051;0;Group]
1050 | ShapeAdded Sheet.3 [/doc=1 /page=1 /shape=Sheet.3]
1050 | SelectionAdded Sheet.3 [/doc=1 /page=1]
1051 | ShapeParentChanged Sheet.1-> Sheet.3 [/doc=1 /page=1 /shape=Sheet.1]
1051 | ShapeParentChanged Sheet.2-> Sheet.3 [/doc=1 /page=1 /shape=Sheet.2]
1052 <ExitScope Group [1051;0;Group]
1296 >EnterScope Ungroup [1052;0;Ungroup]
1298 | QueryCancelUngroup Sheet.3 [/doc=1 /page=1]
<-------- Event Monitor's response is: False (don't cancel)
1300 | ShapeParentChanged Sheet.1-> ThePage [/doc=1 /page=1 /shape=Sheet.1]
1300 | ShapeParentChanged Sheet.2-> ThePage [/doc=1 /page=1 /shape=Sheet.2]
1301 | BeforeSelectionDelete Sheet.3 [/doc=1 /page=1]
1303 | BeforeShapeDelete Sheet.3 [/doc=1 /page=1 /shape=Sheet.3]
1304 | MustFlushScopeEnded
1305 <ExitScope Ungroup [1052;0;Ungroup]