Recent

Author Topic: Canvas problems  (Read 614 times)

dasa2

  • New member
  • *
  • Posts: 9
Canvas problems
« on: November 13, 2019, 08:55:54 pm »
Let's say i have a panel with a color set i also have a label in the panel with transparent background.
When i draw to the panels canvas the label disappear, but is possible to get back with a repaint but is no longer transparent?

How can i make the label transparent again?

Thaddy

  • Hero Member
  • *****
  • Posts: 14371
  • Sensorship about opinions does not belong here.
Re: Canvas problems
« Reply #1 on: November 13, 2019, 09:04:36 pm »
Don't paint directly. Use OnPaint.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018