Recent

Author Topic: Black background on empty TImage  (Read 4688 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8112
  • Programming + Glam Metal + Tae Kwon Do = Me
Black background on empty TImage
« on: August 20, 2008, 08:30:40 am »
When the component doesn't have any image assigned, clicking on it (or passing any other message) will turn it into black empty image. How to solve it? I'm creating an image editor, so I can't have an image assigned at compile time.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2496
RE: Black background on empty TImage
« Reply #1 on: August 22, 2008, 09:46:42 am »
Personally I wouldn't use a TImage for a image editor (it's more for "static" images), but something like a paintbox.

ATM there are some issues with masks, which are worked on.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Leledumbo

  • Hero Member
  • *****
  • Posts: 8112
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: Black background on empty TImage
« Reply #2 on: September 06, 2008, 05:59:24 am »
Any tutorial on how to use TPaintBox? It looks like my image doesn't get painted as with TImage.