Is there any other classes have Canvas besides TImage and TForm?

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!

Comments

  • : 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.
  • Thank you!

  • 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...
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories