Solved

Drawing rectangles and circles on a TCanvas

Posted on 2000-05-06
3
253 Views
Last Modified: 2010-04-04
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
Comment
Question by:sageryd
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Mathias earned 100 total points
ID: 2783857
In the directory "[Delphi]\demos\doc\graphex" is an example, try it.
0
 
LVL 1

Author Comment

by:sageryd
ID: 2783862
ok....thanks..
0
 
LVL 1

Author Comment

by:sageryd
ID: 2783914
Thank you VERY much!

:o)


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



--johan
0

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question