Página 1 de 1
TImage
Publicado: Jue Jun 17, 2010 1:19 pm
por pjmfelix
Hi,
I have a small program to post in art galery, but they dont work 100%.
I put in one BackGround, many randomised images, If is the first image in
the background, that work ok, if is the second image, and is it near the
first, the second image stay underneath the first and the transparent dont
work.
Regards.
--
Cumprimentos
Paulo Félix
Analista / Programador
SHI, Lda.
Rua Garcia de Orta, 48 - 3.º C
Damaia
2720-253 Amadora
Tel.: (351)214 768 098
--
Attached files
TImage
Publicado: Vie Jun 18, 2010 10:07 am
por jfgimenez
Paulo,
please, show the code you are using. Or beter than that, please, send us a
small self-contained sample which we can review.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
TImage
Publicado: Vie Jun 18, 2010 10:39 am
por pjmfelix
Here it is.
Thanks
Regards.
"Jose F. Gimenez" <
jfgimenez@wanadoo.es> escreveu na mensagem
news:[email=4c1b2928@svctag-j7w3v3j....]4c1b2928@svctag-j7w3v3j....[/email]
> Paulo,
>
> please, show the code you are using. Or beter than that, please, send us a
> small self-contained sample which we can review.
>
> --
> Regards,
>
> Jose F. Gimenez
>
http://www.xailer.com
>
http://www.xailer.info
--
Attached files Novo_X.7z (2.3 KB)Â Source.7z (1.4 KB)Â
TImage
Publicado: Vie Jun 18, 2010 11:56 am
por jfgimenez
Paulo,
same issues:
1) The sample you have sent was not "self-contained". It didn't even
compile, due to missing external references.
2) Please, when sending a sample project, use the IDE's "Export project"
option under "Project" menu.
3) Respecting the problem... well, you cannot do it that way. Any control,
including TImage, can be "transparent", but in the meaning that it allow to
see areas from its "parent" container, not any other control in the same
"parent-child" level. So, the behaviour you get is correct. The way to do
what you want is by loading the image into a TPicture object, and painting
it when needind from the OnPaint or OnPainted events. Attached is the fixed
self contained sample.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
--
Attached files Novo_X.zip (9.1 KB)Â
TImage
Publicado: Vie Jun 18, 2010 1:22 pm
por pjmfelix
Perfect !!!
Many thanks Jose.
Best Regards.
"Jose F. Gimenez" <
jfgimenez@wanadoo.es> escreveu na mensagem
news:4c1b42b9$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Paulo,
>
> same issues:
>
> 1) The sample you have sent was not "self-contained". It didn't even
> compile, due to missing external references.
>
> 2) Please, when sending a sample project, use the IDE's "Export project"
> option under "Project" menu.
>
> 3) Respecting the problem... well, you cannot do it that way. Any control,
> including TImage, can be "transparent", but in the meaning that it allow
> to
> see areas from its "parent" container, not any other control in the same
> "parent-child" level. So, the behaviour you get is correct. The way to do
> what you want is by loading the image into a TPicture object, and painting
> it when needind from the OnPaint or OnPainted events. Attached is the
> fixed
> self contained sample.
>
> --
> Regards,
>
> Jose F. Gimenez
>
http://www.xailer.com
>
http://www.xailer.info
>