TPicShow

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

TPicShow

Postby clauddiu » June 26th, 2010, 10:11 am

Hello:

Is there a way to put an timage over Tpicshow?

Thank you,
Claudiu
clauddiu
Member
Member
 
Posts: 4
Joined: August 1st, 2009, 12:55 pm

Re: TPicShow

Postby actalk » June 29th, 2010, 8:58 pm

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.
actalk
Junior Member
Junior Member
 
Posts: 29
Joined: October 5th, 2007, 3:56 pm

Re: TPicShow

Postby clauddiu » June 30th, 2010, 6:01 am

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
clauddiu
Member
Member
 
Posts: 4
Joined: August 1st, 2009, 12:55 pm

Re: TPicShow

Postby Kambiz » June 30th, 2010, 4:23 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: TPicShow

Postby clauddiu » June 30th, 2010, 4:33 pm

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
clauddiu
Member
Member
 
Posts: 4
Joined: August 1st, 2009, 12:55 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron