Solved

Painting on TPanel

Posted on 1997-05-18
1
297 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

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…
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

773 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