Solved

Painting on TPanel

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
delphi exception 7 58
Delphi Firemonkey Need Sample for Online Shopping Example. 2 103
LAN or WAN ? 11 61
Create a path if not exists 7 44
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

18 Experts available now in Live!

Get 1:1 Help Now