Run time component design
Posted on 2003-11-20
I'm to Implement Delphi-like component editor. I would very grateful if You could give me, if it's possible, a little hint or example how to implement the following features:
1. Dots (Coordinates Net) on the form during the Design time. Are they simply drawn on form's Canvas?
2. How to implement Black selection of the controls, when they are clicked at design time? Further, I do not know how to do the Resize of controls when they are draged by this black outlinement by mouse.
3. How to implement moving of the controls on the form?
I've done it by allowing dragging and accepting it everywhere, but I have not obtained smooth movement as it's in Delphi. During the Drag operation my controls blink and move unsmoothly...
If you could answer me, I would be very very thankful.