Link Search Menu Expand Document

Dialog.SetImage Method

Explanation Set the image list used to display the icon of the dialog title
Added since Ver.4.1.3
Not supported in Mobile, AI
Call format Dialog1.SetImage( image )
Return value None
Arguments ImageList img ImageList object that holds the image list you want to display
Set the MaskUse property to $ TRUE for the specified ImageList object. In the case of $ FALSE, the background part of the image may not be transparent and the expected drawing may not be performed.
Exception EXT-5 ImageList reference is abnormal
Example of use
ImageList img {
    MaskUse = $TRUE;
    MaskColB = 255;
    MaskColR = 255;
    LoadImage("icon.png");
}
Dialog1.SetImage(img);
Dialog1.Icon = 1;
    
Related item Icon property
ResetImage method
ImageList class