lazarus/examples/stock_images
2024-07-29 12:26:08 +02:00
..
project1.ico Revised default project icon (less memory usage). Text in logos as graphic, no need for a special font. All by Roland Hahn. 2024-07-29 12:26:08 +02:00
project1.lpi Examples: stock_images: DPI-aware 2022-09-29 00:25:57 +02:00
project1.lpr Examples: stock_images: DPI-aware 2022-09-29 00:25:57 +02:00
project1.res Examples: stock_images: DPI-aware 2022-09-29 00:25:57 +02:00
readme.txt Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
stock_images.ex-meta Examplesmv restructure examples dir much like it used to be 2022-05-17 20:50:08 +00:00
unit1.lfm Examples: stock_images: DPI-aware 2022-09-29 00:25:57 +02:00
unit1.pas Examples: stock_images: DPI-aware 2022-09-29 00:25:57 +02:00

This example allows one to traverse stock images which can be requeted from LCL.

There are 2 kind of such images:

1. Dialog icons. They are used mostly by MessageDlg. If underlying widgetset
   has own stock icons LCL will use them in other case LCL provides own default
   icons. LCL does not have defaults for all images. Only those images which are
   used by MessageDlg have defaults in LCL.

2. Button icons. They are mostly used by TBitBtn control. For every Kind except bkCustom
   LCL has default stock image which is used in the case when widgetset does not has own.
   There are more stock images than kinds of TBitBtn. For example you can request stock
   Save or Open button icon and in case widgetset = gtk or qt you will get it.

Next thing shown by this example is how to get caption for stock image.