Solved

AutoShapes

Posted on 2006-06-09
3
272 Views
Last Modified: 2012-08-14
Could anyone provide me some infomation regarding how to design the following task...

I am try to design a rectangle linking system (something like Word "AutoShapes" or Visio)

+----+       +----+
|      |---->|      |
+----+       +----+


1. Create multiple Rectangle control (may be buttons, images...) in a panel, each rectangle has 8 linking points (show as below)

a-----b-----c
|              |
d              e
|              |
f-----g-----h

2. User can drag any rectangle to anywhere in the panel

3. There are few arrow lines link rectangles

4. User can draw new lines or change existed lines between rectangles by using mouse, during user drawing a line, if the cursor is closing any rectangle (let's say 15 pixels), the program should connect the line to the nearest linking point automatically.

Thanks
0
Comment
Question by:billcch
3 Comments
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 150 total points
Comment Utility
I have a not so trivial example in VB.Net:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21361303.html

Converting it will be a pain because I use WithEvents extensively (to turn on/off event trapping without using a series of AddHandler/RemoveHandler calls) and there is no equivalent for it in C#.
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 350 total points
Comment Utility
0
 

Author Comment

by:billcch
Comment Utility
Thank you!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now