Drawing (not paint) control

  • Thread starter Thread starter Tom Hornyak
  • Start date Start date
T

Tom Hornyak

I need to do the following in C#:

1. Drop an arbitrary image from one control to another bitmap on another
control.

2. Interact with this shape (stretch it, rotate it, etc,) once on the
bitmap.

Really I want a poor man's Visio 2003 drawing control. Any example,
commercial, or open source solution would be apprectiated. I could write
this myself, but there has to be something out there.
 
A 'poor mans' Visio? That sounds like an interesting task. I'll see what I
can dig up.

It would seem to me that the way to go would be to construct objects that
inherit from a Drawing class. For example, construct an object that inherits
from a drawable control, like 'Region', and define your properties there.
Examine the RegionMaster controls on www.winforms.com if you want a better
idea of that one.

once you have your objects designed as drawable objects, you should just be
able to draw and drop them onto a form. But you seem to make it sound as if
you want this to be done during the program, not during development. For that
reason, I'd say build a queue of objects and load all of them into it, then
use the OnDragDrop event to trigger things. You might try reflection to
actually create the objects and their relationships.
 
By a "poor man's Visio control" I assume you mean one
which does not require every end-user of your application
to buy a visio license.

You might consider our MetaDraw control.
No run-time / end-user license requirements
for compiled ( EXE ) applications or web pages
using MetaDraw

MetaDraw will do what you want
- allowing you to drag an arbitrary image
onto a bitmap in MetaDraw
- allowing you ( by mouse or code )
to select, stretch, rotate, move that image

MetaDraw also offers support for
drawing,
dragging / resizing / rotating drawn objects
undo / redo
scroll, zoom,
save / load ( and still recognize the inserted image )
print
create diagram links
and more.

Check it out at www.MetaDraw.com
For Winforms applications use MetaDraw .NET Winforms edition
For web applications use MetaDraw 3 OCX edition


* * * * Please include a copy of this message with your reply

Jeff Bennett
(e-mail address removed)

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com

=================== ===================
 
Back
Top