A
Andy
As the control/screen tips don't work on a visio diagram if the layers
are locked, I have made use of the mousemove events. If the mouse is
not moved for a given period, i use a spatial search to find the shapes
and then display a modeless form. After a time or if the mouse is
moved, the form is hidden.
This works fine apart from 2 problems,
1. If another modeless form is displayed and i pass over a shape moving
onto the form, my tip form is displayed as the mouse hasn't moved for
my delay time. Obviously I don't get mouse move events on the form, but
there seems to be no way of determining if the visio diagram has lost
focus.
2. If another modal dialog is displayed, sometimes I get an error as my
timer fires and attempts to display my tip forrm. Either I need to
detect the Visio diagram has lost focus or that a modal dialog is
displayed.
Any suggestions welcomed.
are locked, I have made use of the mousemove events. If the mouse is
not moved for a given period, i use a spatial search to find the shapes
and then display a modeless form. After a time or if the mouse is
moved, the form is hidden.
This works fine apart from 2 problems,
1. If another modeless form is displayed and i pass over a shape moving
onto the form, my tip form is displayed as the mouse hasn't moved for
my delay time. Obviously I don't get mouse move events on the form, but
there seems to be no way of determining if the visio diagram has lost
focus.
2. If another modal dialog is displayed, sometimes I get an error as my
timer fires and attempts to display my tip forrm. Either I need to
detect the Visio diagram has lost focus or that a modal dialog is
displayed.
Any suggestions welcomed.