Recent

Author Topic: Play slideshow inside form just like PicShow component does in Delphi  (Read 6793 times)

Kushal

  • New Member
  • *
  • Posts: 33
I'm a newbie to lazarus. i'm trying to play slide show of specific image files in a folder which can be selected at run time.

i've found a component-PicShow for delphi from Delphiarea.com.

plz let me know if there is any similar component for lazarus. if there is none give me some references where i can make use of it and build one.

Thanks in advance

wjackson153

  • Sr. Member
  • ****
  • Posts: 267
Re: Play slideshow inside form just like PicShow component does in Delphi
« Reply #1 on: January 27, 2013, 07:39:25 am »
There is a component
In Code Typhoon that can play slide show
Lazarus 1.1 r39490 CT FPC 2.7.1 i386-linux KDE
Linux Mint 14 KDE 4

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Play slideshow inside form just like PicShow component does in Delphi
« Reply #2 on: January 27, 2013, 07:57:10 am »
None that I know of, but it should be easy to build one, just combine TImage, TTimer, TDirectoryEdit (or other directory selection component). Set TDirectoryEdit's OnChange event to get all images from selected directory (use FindAllFiles with specified mask, e.g. '*.jpg;*.bmp;*.png'). You can choose whether save the result in a global / form's private variable and load the image on TTimer's OnTimer using TImage.Picture.LoadFromFile or use a TImageList to preload all of the images (this is faster, but more complex code).

Kushal

  • New Member
  • *
  • Posts: 33
Re: Play slideshow inside form just like PicShow component does in Delphi
« Reply #3 on: January 27, 2013, 11:36:34 am »
None that I know of, but it should be easy to build one, just combine TImage, TTimer, TDirectoryEdit (or other directory selection component). Set TDirectoryEdit's OnChange event to get all images from selected directory (use FindAllFiles with specified mask, e.g. '*.jpg;*.bmp;*.png'). You can choose whether save the result in a global / form's private variable and load the image on TTimer's OnTimer using TImage.Picture.LoadFromFile or use a TImageList to preload all of the images (this is faster, but more complex code).

Thanx for you quick response and solution.
combination of these components solved my issue. its working.

Thanx once again.  :D

 

TinyPortal © 2005-2018