Solved

AutoShapes

Posted on 2006-06-09
3
275 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
ID: 16870876
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
ID: 16871165
0
 

Author Comment

by:billcch
ID: 16899074
Thank you!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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