DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Write on Picshow

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
epalomaro
Member


Joined: 25 Jul 2003
Posts: 1
Location: Brazil

PostPosted: 25/07/03 15:51    Post subject: Write on Picshow Reply with quote

I want to write a dynammic text before the picture slides. And this text will animate together the clip, I can I do that?

Thanks

Eduardo
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 235

PostPosted: 25/07/03 17:56    Post subject: Reply with quote

Unfortunately the OnStart event of PicShow does not pass the image as parameter, however by defining a boolean variable and using OnStop and OnBeforeNewFrame events of PisShow you can write a text on the image.

Code:
procedure TForm1.PicShow1Stop(Sender: TObject);
begin
  Stamped := False;
end;

procedure TForm1.PicShow1BeforeNewFrame(Sender: TObject; Picture, Screen: TBitmap);
begin
  if not Stamped then
  begin
    Stamped := True;
    Picture.Canvas.TextOut(10, 10, 'Sample');
  end;
end;


In the next release of PicShow I'll modify the OnStart event to pass the Picture as parameter.

Cheers,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 235

PostPosted: 26/07/03 14:08    Post subject: Reply with quote

I just released the new update of PicShow. As I mentioned in my last post, I modified the OnStart event to passes the image to the handler. So, using the new release you can reach to your goal by the following code:

Code:
procedure TForm1.PicShow1Start(Sender: TObject; Picture, Screen: TBitmap);
begin
  Picture.Canvas.TextOut(10, 10, 'Sample');
end;


Cheers,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group