Drawing rectangles and circles on a TCanvas

Hi.

I want to make a drawing interface similar to the one in MS Paint, eg. when you draw a rectangle, there should be an outline painted when you hold how the mousebutton so you can see the size of the to-be-drawn rectangle, then when you let go of the button it draws itself. I want to do the same thing with circles. Another not as important thing, is to be able to press escape when the mousebutton is down, so that the current action gets canceled.

Thanks!

regards,
Johan
LVL 1
sagerydAsked:
Who is Participating?
 
MathiasConnect With a Mentor IT SpecialistCommented:
In the directory "[Delphi]\demos\doc\graphex" is an example, try it.
0
 
sagerydAuthor Commented:
ok....thanks..
0
 
sagerydAuthor Commented:
Thank you VERY much!

:o)


I am as happy as can ever be! Almost...



--johan
0
All Courses

From novice to tech pro — start learning today.