ILButton( HBtn, Images, Cx = 16, Cy = 16, Align = "Left", Margin = "1 1 1 1" )
Creates an ImageList and associates it with a button.
HBtn | Handle of a buttton. |
Images | A pipe delimited list of images in form “FileName[:zeroBasedIndex]” or ImageList handle. Any position can be omitted in which case icon for state “normal” is used. |
Cx | Width of the image in pixels. By default 16. |
Cy | Height of the image in pixels. By default 16. |
Align | One of the word: Left (default), Right, Top, Bottom, Center. |
Margin | Margin around the icon. A space separated list of four integers in form “left top right bottom”. |
Handle of the ImageList if operation was completed or 0 otherwise.
Within Aero theme (WinOS >= Vista), a defaulted (focused) button fades between images 5 and 6. Each succesifull call to this function creates new ImageList. If you are calling this function more times for single button control, freeing previous ImageList is your responsibility.