Delphi and Kylix

Moderators: pritaeas
Number of threads: 7244
Number of posts: 19051

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Is there any other classes have Canvas besides TImage and TForm? Posted by earth_walker on 29 Jul 2003 at 3:35 PM
Hi! I check the documentation of TPanel and TBevel but doesn't find it. I want to use this control to restrict the drawing area.
Thank you!
Report
Re: Is there any other classes have Canvas besides TImage and TForm? Posted by zibadian on 29 Jul 2003 at 3:46 PM
: Hi! I check the documentation of TPanel and TBevel but doesn't find it. I want to use this control to restrict the drawing area.
: Thank you!
:
Nearly all controls derived from the TGraphicControl and TCustomControl have a public Canvas property. If you want to have a simple drawing place you can use the TPaintBox.
Report
Re: Is there any other classes have Canvas besides TImage and TForm? Posted by earth_walker on 31 Jul 2003 at 6:02 AM
Thank you!

Report
Re: Is there any other classes have Canvas besides TImage and TForm? Posted by bloodyangel on 1 Aug 2003 at 5:30 AM
Hi,
You can use panel with an Image or PaintBox. Put Image or PaintBox in the panel and set align property to alClient for Image or PaintBox. Now you have a panel with Canvas!

Good luck...
Report
Re: Is there any other classes have Canvas besides TImage and TForm? Posted by earth_walker on 1 Aug 2003 at 12:59 PM
Thank you!




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.