Solved

Painting on TPanel

Posted on 1997-05-18
1
307 Views
Last Modified: 2010-04-04
A program I'm working on needs the TPanel painted with a tiled image. I know I can add an TImage to it set to client, but is there a way to paint directly on to the TPanel surface. If so an Example Please on how this is done.
0
Comment
Question by:PPaul
1 Comment
 
LVL 1

Accepted Solution

by:
sleach earned 100 total points
ID: 1336403
TPanel does not have a canvas property, so the equivelent in Delphi would be to use a TImage instead of TPanel.  Then you can use the canvas property with its many image drawing methods.

Example:
image1.canvas.ellipse(1,1,20,20);
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

735 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