Archive<< May 2020 >>
- TMS WEB Core for Visual Studio Code beta is ready for TMS ALL-ACCESS users
- TMS VCL UI Pack 10.3 Major Update
- New Hands-on with Delphi book available now
- TMS WEB Core v1.4 beta is here for TMS ALL-ACCESS users
- TMS XData in a COVID-19 app: comments from the developer
- Extend TMS WEB Core with 40+ Smart HTML Elements
- Adrian Gallero (22)
- Bart Holvoet (3)
- Bernard Roussely (1)
- Bruno Fierens (246)
- Gjalt Vanhouwaert (5)
- Holger Flick (15)
- Marcos Douglas B. Santos (5)
- Masiha Zemarai (42)
- Nancy Lescouhier (32)
- Pieter Scheldeman (30)
- Roman Yankovsky (2)
- Tunde Keller (4)
- Wagner R. Landgraf (65)
BlogAll Blog Posts | Next Post | Previous Post
Thursday, February 04, 2010GDIPPictureContainer use
Many components have the capability to show images, either from an imagelist or a GDI+ picturecontainer or sometimes both. The GDIPPictureContainer makes it easy to use and embed PNG, JPEG, ICO, BMP, GIF and TIFF images in your applications. The major advantage of the GDIPPictureContainer is that it allows to store images just once in the DFM file and allow to reuse it in different components. The GDIPPictureContainer could be dropped on a datamodule and can be shared between different forms.
First a GDIPPictureContainer component must be dropped on the form and linked to the component.
Previously, adding images at design time to the GDIPPictureContainer was done via a simple collection editor:
With this collection editor, a picture could be loaded for each item in the collection and a name could be set. The process quickly becomes tedious though as you cannot easily see at design time the picture that is behind each item in the collection:
To make the use of the GDIPPictureContainer easier and more straightforward, we have designed a special new design time editor. With this design time editor, you have a visual presentation of the images in the GDIPPictureContainer as well as a quick visual overview of available images in folders on your hard disk. Adding images to the GDIPPictureContainer now becomes as straightforward as drag & drop from the image folder to the GDIPPictureContainer picture list.
The power of TAdvSmoothImageListBox
The components that are used for the picture list overview and the image browser are both a TAdvSmoothImageListBox. Below is a list of the included features:
- Drag and drop one or multiple images from the image browser to the picture list.
- Double click on an item in the picture list to change the name.
- Change the view of the picture list or the image browser with a splitter or change the number of columns.
- Browse easily and fast through different folders on your system.
- Fast overview of all added images to the GDIPPictureContainer
- Fast loading & smooth animated scrolling through thousands of images
- Quickly remove and add pictures with one click
- Keyboard lookup based on image name
This blog post has received 1 comment.
All Blog Posts | Next Post | Previous Post