I want to create a simple Vector Designer. My mean of Vector designer is a designer like Macromedia Flash, Adobe Photoshop, etc.
User can draw line, rectangle, free hand, insert image, rotate every object on canvas.
Now Here is my question:
1- What is best base component of this designer? TPanel, TPaintBox, TScrollBox, etc?
2- How control insdide container (TPanel, TPaintBox, TScrollBox or something else you suggesteed in question 1) can be resize, moved or rotated?
I just know this code that used for moving controls:
WM_SYSCOMMAND, $F012, 0);
Here is very excelent but not-complete article about Form Design:
How can I add GrabHandle to components and How I must draw them in other controls?
3- How implemet a very simple drawing inside container?
For example how implement drawning a line or rectangle so user can draw any line and any rectangle on screen?
4- How Rotate any controls? is it possible to rotate them?
5- Do I have to user DirectX or OpenGL like Beez(for more information about Beez see end of question)?
I know some reference that can help:
1- A designer for creating SVG: Beez
Beez user DelphiX Package that is implemetaion of DirectX
2- A desinger for creating CAD Files: AutoRELAM
3- A Commercial product for adding Design Capability:
4- Other commercial product for adding Design Capability:
5- An OpenSource Project for generating Reports
Answer any question you know! It is not required to answering all of questions. Please help me more with sample source code!