type TPdfThumbnailView = class(TCustomControl) ... end;
| Member | Description |
|---|---|
Create | Inicijalizira zadane thumbnail sizing, colors, scrolling, and selection state |
Destroy | Releases internal thumbnail-control resources |
| Property | Type | Default | Description |
|---|---|---|---|
Pdf | TPdf | nil | Document component used for page count and thumbnail rendering |
CurrentPageIndex | Integer | 0 | One-based selected page index; 0 means no page is selected |
ThumbnailWidth | Integer | 120 | Target thumbnail width, clamped to the supported range |
ThumbnailHeight | Integer | 160 | Target thumbnail height, clamped to the supported range |
TextColor | TColor | clBlack | Page-number caption color |
HoverColor | TColor | clMoneyGreen | Row highlight color under the hovered thumbnail |
SelectionColor | TColor | clHighlight | Row highlight color for CurrentPageIndex |
BorderColor | TColor | clGray | Thumbnail border color |
Color | TColor | clWhite | Control background color inherited from TCustomControl |
| Event | Type | Description |
|---|---|---|
OnPageClick | TPdfThumbnailClickEvent | Raised when the user left-clicks a thumbnail row; APageIndex is one-based |
Assign Pdf to the same TPdf instance used by a viewer, then keep CurrentPageIndex synchronized with the active page
The control owns its scrolling and repaints page thumbnails on demand, using hover and selection colors to show pointer and current-page state
Handle OnPageClick to update a paired TPdfView.PageNumber or any other page-navigation surface
ThumbnailView.Pdf := Pdf1;
ThumbnailView.CurrentPageIndex := PdfView1.PageNumber;
ThumbnailView.OnPageClick := ThumbnailPageClick;