Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Drawing rectangles and circles on a TCanvas

Posted on 2000-05-06
3
Medium Priority
?
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Mathias earned 400 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

670 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