Pro's and Contra's For Showing Stencils in Your Application.

S

soso

Hello All,



Now I'm trying to work with the new Visio 2003 ActiveX control and got stuck
with the following problem. Developing an application we have two choices:
Show stencil(s) in the Visio control or imitate as shown in the only
available online example
http://msdn.microsoft.com/library/e.../odc_vsProgrammingWithVisioActiveXControl.asp

The main positive factor to show a stencil is to leaving its initial
functionality available - drag'n'drop, icons and so on. But from the other
hand when you have a stencil opened your program should watching for at
least two instances of a Visio documents (the document opened for edition
and one or more documents containing stencils) and able filtering between
the events that complicates the application events model. There few more
issues that could be considered.

I'm really stumbled with the question - show or hide stencils in a
applications? Could someone suggest me something?

Sergo.
 
S

Scott Metzger

soso said:
The main positive factor to show a stencil is to leaving its initial
functionality available - drag'n'drop, icons and so on. But from the other
hand when you have a stencil opened your program should watching for at
least two instances of a Visio documents (the document opened for edition
and one or more documents containing stencils) and able filtering between
the events that complicates the application events model. There few more
issues that could be considered.

I have included a stencil in my application. I am not experiencing the
event complication that you are talking about. Maybe I am just missing
something. Could you elaborate?

Thank You,
Scott Metzger
 
S

soso

Scott Metzger said:
Could you elaborate?

The problem is that I'm not sure about what pattern will be right choice
for the application using Visio control. We couldn't use
Model-View-Controller (MVC) pattern for the application, because we have
integrated View-Controllers (VC), like Visio ActiveX control. In some
analysis the Visio ActiveX control also could be decomposed to Stencil
control and Visio Drawing control. That is my question - is it a good style
to leave Stencil as a part of the same Visio ActiveX control or it should be
separated (The separation could be done by showing it in the other Visio
ActiveX control or its hiding and usage through the other VC control.)

Thank You,

Soso.
 
S

Scott Metzger

Considering Steve Cox's post about Drag and Drop and all the problems he
is having I would go with the Same Drawing control for both stencil and
drawing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top