ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV 2025 feature!
Help / WLanguage / WLanguage functions / Controls, pages and windows / List Box functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ListProcedureLoadImage (Function)
In french: ListeProcédureChargeImage
Specifies the procedure to be called when displaying a row in a ListView control. This makes it possible to display an image dynamically, rather than loading an image from disk.
Note: This function must be called in the "Display a row" event of a ListView control.
Example
INTERNAL PROCEDURE LoadCustomImage(rowNum is int, width is int, height is int)
	ImageToLoad is Image
	ImageToLoad.Width = width
	ImageToLoad.Height = height
	dStartDrawing(ImageToLoad, dWithOpacity)
	dFont("Arial", 12, iNormal, 0)
	dText(4, 0, "Row " + rowNum)
	RETURN ImageToLoad
END

ListProcedureLoadImage(LSV_MyListView, LoadCustomImage)
Syntax
ListProcedureLoadImage(<ListView control> , <Loading procedure>)
<ListView control>: Control name
Name of ListView control to use.
<Loading procedure>: Procedure name
Name of the procedure that loads the images in the ListView control. This procedure returns the image to be loaded on each row of the ListView control. For more details on this procedure, see Parameters of the procedure used by ListProcedureLoadImage.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/11/2025

Send a report | Local help