Design mode and ActiveX 
Author Message
 Design mode and ActiveX

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.



Mon, 19 Jan 2004 15:17:59 GMT  
 Design mode and ActiveX
I forgot to say that its Word 2000 we work with.

/ Lasse T.


Quote:
> 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.



Mon, 19 Jan 2004 16:31:17 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Design mode with ActiveX controls

2. Resizing ActiveX in Design Mode

3. doc with activex always opens in design mode

4. Template comes up in ActiveX design mode

5. How to contain ActiveX controls in design mode

6. How to contain ActiveX controls in design mode

7. Browser Control: Design Mode vs Compiled Mode

8. change from running mode to design mode

9. Please Help......Design mode Vs. Run mode detection

10. Browser Control: Design Mode vs Compiled Mode

11. MainMenu does not show in design mode when Form1.vb[Design] has focus

12. VBE in User Designed Control Design Mode

 

 
Powered by phpBB® Forum Software