Hi,
I'd be very happy if someone could explain how design mode interacts with
ActiveX controls, i.e. custom written controls, not the ones that comes with
Word to be used on UserForms.
What we want to do is to "enhance" Words ordinary shape objects by letting
our own ActiveX control take the place of the shape object. By enhance I
above all mean being able to handle more mouse events.
What we have done so far is to write an ActiveX control and write VBA code
in a template to add the control to the active document with the
ActiveDocument.Shapes.AddOLEControl call. Now when we create a document
based on the template and add our control we wont get the events of the
control working unless the document is put into design mode. Now, "working"
is a bit of an overstatement since double-clicking the control will take you
to the VBA editor, which of course is a bad thing for an end user.
Have we missed something or is it just not possible to do what we want to
do?
Many thank in advance
/ Lasse T.