Solved

Drawing rectangles and circles on a TCanvas

Posted on 2000-05-06
3
249 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now