tags:

views:

245

answers:

4

Hi,

Is there any reason why images are not being displayed if I place it into tabsheet? Just shows white background instead.

A: 

Which Delphi version and what kind of an image?

2006 shows images on tabsheets?

Have you tried to show the image without the tabsheet?

Gamecat
7Iamge shows up fine when not using tab sheets. It's being displayed however, if I set parent
Tom
Yes parent (and owner must be set). But these are set automatically if you are using the form designer. Without a parent a component does not know where it must be painted.
Gamecat
`Owner` does not need to be set for a component to display.
Rob Kennedy
A: 

What type of images (bmp or jpeg)? Include jpeg unit in your code if you use jpg's.

zendar
.gif, same with png
Tom
What component do you use to display png and gif?
zendar
+3  A: 

If you are creating them at run-time, be sure to set their Parent property. The parent is responsible for providing the painting context.
No parent = nothing displayed.

François
A: 

I have had a possibly similar problem with images not showing (some time ago) and I fixed it by adding a panel and then image. (I don't really get the difference, but it worked then)

ravyr