Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

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
0
sageryd
Asked:
sageryd
  • 2
1 Solution
 
MathiasIT 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now