Page 1 of 1
TPicShow

Posted:
June 26th, 2010, 10:11 am
by clauddiu
Hello:
Is there a way to put an timage over Tpicshow?
Thank you,
Claudiu
Re: TPicShow

Posted:
June 29th, 2010, 8:58 pm
by actalk
Hello,
If you mean content picture of a TImage instance,
I think "Assign" procedure can be used.
PicShow1.Picture.Assign(image1.Picture);
else if you mean placemet TImage instance,
first You can add a TPanel over TPicshow obj.,
then add an TImage into the TPanel.
Re: TPicShow

Posted:
June 30th, 2010, 6:01 am
by clauddiu
if I use a tpanel then is not transparent anymore, I wish to make a frame using png images with shadow and stuff, thats why i ask if i can place a timage over TPicShow.
Thank you for your reply
Claudiu
Re: TPicShow

Posted:
June 30th, 2010, 4:23 pm
by Kambiz
You cannot put a TImage on TPicShow. Generally, you cannot bring a non-windowed control on top of a windowed control.
However, you can draw an image on TPicShow control. Use OnAfterNewFrame event and draw the image on Screen bitmap.
Re: TPicShow

Posted:
June 30th, 2010, 4:33 pm
by clauddiu
Thank you for your answer, I manage to work around I made an aditional property to TPicShow like so:
TOnAnimate = procedure(Sender: TObject; Display: TBitmap) of object;
property OnAnimate: TOnAnimate read FOnAnimate write FOnAnimate;
and on updatedisplay procedure:
if Assigned(fOnAfterNewFrame) then
fOnAfterNewFrame(Self, Pic, Display);
if Assigned(FOnAnimate) then
begin
FOnAnimate(Self, Display);
end;
It seems i did what you already made, lol, let me try it. I dint notice your property... damit
Cheers,
Claudiu