MarqueeImageEvent

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

MarqueeImageEvent

Postby surfer007 » October 21st, 2011, 7:13 pm

Hi,

do you have a small example how to use the TMarqueeImageEvent?
I want to have a image in the scroller, but the image shall be loaded not from file, just assign it from a TImage.

At the moment i use <img src="favicon.ico" width="16" height="16" /> which works.
But sometimes the image is not shown so i think its maybe a path problem?

Trying with the Image Event like this is not working:

Code: Select all
procedure TForm1.RealTimeMarqueeImage(Sender: TObject;
  const URI: WideString; Image: TPicture);
begin
  Image := ImageStar.Picture;
end;


Thanks...
surfer007
Member
Member
 
Posts: 1
Joined: October 21st, 2011, 7:02 pm

Re: MarqueeImageEvent

Postby Kambiz » October 23rd, 2011, 5:03 pm

Try this code

Code: Select all
procedure TForm1.RealTimeMarqueeImage(Sender: TObject;
  const URI: WideString; Image: TPicture);
begin
  Image.Assign(ImageStar.Picture);
end;
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: MarqueeImageEvent

Postby profh » March 18th, 2013, 4:35 am

is it able to extrude one line upward, and stay 1 second, then the next line...
it looks cool.

thanks.
profh
Member
Member
 
Posts: 2
Joined: February 18th, 2013, 8:39 am

Re: MarqueeImageEvent

Postby Kambiz » March 19th, 2013, 7:50 pm

It's possible but you have to write your own controlling logic.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron