help needed to create custom control which can arrange controls in polygonal shape

help needed to create custom control which can arrange controls in polygonal shape

Post by Shailaja K » Thu, 20 Nov 2003 23:35:48


Hi All,
I am new to component development.
I want to create custom control to arrange contained controls in form of
polygonal shape.
The objects are placed in separate panel on the some form.
At one place collection of controls representing objects is present.
User should be able to click on respective control that time cursor should
change.
And whenever mouse comes in this control area locations where control can be
placed should get highlighted.

Those should be dragged and arranged in form required polygonal shape.
This is to show user how many euipments are present in factory.
On clicking any of this any of the control details of particular equipement
are displayed.
Intially there should be four rectangular images placed in form of rhombus,
and then when one more such object is dragged to the control display area,
all 5 objects should be rearranged in form of pentagon.When one more object
added they should look like hexagon.
Can you please suggest me any links where I can get infromation about
creating such custom control or what steps should be taken to implement
above functionality?

My main doubt is how to calculate position to places those controls?
Thanks in advance.
Regards
Shailaja