You are here: Home Delphi Stuffs NiceGallery
NiceGallery Component
Version: 1.1
Release Date: June 28, 2007
Introduction
NiceGallery is a free visual control fro Delphi that can display several images, scroll them
left and right, and can accept click event for each image. This component mimics
the one I found in Microsoft Encarta™. This component can be used as a
menu or simply as an eye-candy for your application. Everybody loves eye-candy.

Version History
Version 1.1 (June 28, 2007)
Reported bugs fixed
Version 1.0 (May 26, 2007)
Initial Release
License
This library is released under Mozilla Public License. You can use it in your
freeware, shareware or commercial softwares. You can send your modification
to me, and if I decide to include it in the main distribution, I will add your
name as a contributor. You can read full licensing information here.
Installation
There is no special process to install it on Delphi. Just open NiceGalleryD7.dpk
on Delphi IDE and press Install button. I use Delphi 7. If you use another Delphi
version, you may have to make some minor changes.
The component will appear in priyatna.org tab.
Properties
There are some main properties of the component:
- property Active: Boolean;
Specifies whether the component need to scoll the content or not.
- property Items: TGalleryItems;
This is a collection of gallery items. Each item has its own bitmap, hint
string and tag property to identify them.
- property ScrollerSize: Integer;
Specifies the size of scrollers. Scroller is an arrow in the left and right
of the component that if user hovers the mouse over it, the component will
scoll its content faster.
- property ScrollerArrowColor: TColor;
Specifies scroller arrow color.
- property ScrollerColor: TColor;
Specifies scroller color.
- property ScrollerHoverArrowColor: TColor;
Specifies scroller arrow color when user hovers the mouse over it.
- property ScrollerHoverColor: TColor;
Specifies scroller color when user hovers the mouse over it.
- property HandPointCursor: Boolean;
Specifies whether a handpoint cursor will be used instead of the default cursor.
- property SelectionColor: TColor;
Specifies rectangle color that surrounds the selected item.
- property SmallChange: Integer;
Specifies the amount of the pixel used by the component to scroll its content.
- property LargeChange: Integer;
Specifies the amount of the pixel used by the component to scroll its content
when user hovers the mouse over arrows.
- property OnHover: TGalleryEvent;
procedure (Sender: TObject; Index: Integer) of object;
An event that is fired everytime the mouse hovers an item.
- property OnClick: TGalleryEvent;
procedure (Sender: TObject; Index: Integer) of object;
An event that is fired everytime an item is clicked.
Download
Download full source code and demo here:
|