F
Florent, See-Visio PM
Hi,
I develop on Visio application for 7 years now and there is a problem I
cannot solve.
I need to customize my right click on an object depending on several
parameters.
My function takes one or two seconds to calculate the contain of the right
click menu to be displayed.
My problem is the following :
How can I know exactly the shape my right click is on?
- If I use the visEvtCodeMouseUp event, sometimes MyWindow.Selection.Count=0
so I don't know which object to take to calculate my right-click menu
content.
- If I use the visEvtCodeWinSelChange, my menu is already displayed,
so it's too late.
I don't have any event beetween those two events.
Before the first event, the selection is not set, after the second event,
the menu is already displayed.
I've already try the SpatialSearch method to recognize the shape I was on,
but I didn't succeed to predict
exactly the shape that was about to be selected by my right click. And the
consequences can be desastrous
for my application if I display a right click on a wrong shape.
For now, I had got to degradate the general ergonomy of my application by
forcing selection before making a right click to have the menus displayed.
What can I do to have a 'natural' right click?
I develop on Visio application for 7 years now and there is a problem I
cannot solve.
I need to customize my right click on an object depending on several
parameters.
My function takes one or two seconds to calculate the contain of the right
click menu to be displayed.
My problem is the following :
How can I know exactly the shape my right click is on?
- If I use the visEvtCodeMouseUp event, sometimes MyWindow.Selection.Count=0
so I don't know which object to take to calculate my right-click menu
content.
- If I use the visEvtCodeWinSelChange, my menu is already displayed,
so it's too late.
I don't have any event beetween those two events.
Before the first event, the selection is not set, after the second event,
the menu is already displayed.
I've already try the SpatialSearch method to recognize the shape I was on,
but I didn't succeed to predict
exactly the shape that was about to be selected by my right click. And the
consequences can be desastrous
for my application if I display a right click on a wrong shape.
For now, I had got to degradate the general ergonomy of my application by
forcing selection before making a right click to have the menus displayed.
What can I do to have a 'natural' right click?