Life could be so easy, if some things would work as expected.
Buttons have an ..image property.
Button..image = "mypicture.jpg" works fine, the image is shown on the button.
Ok, now, if we have a big number of buttons and want to supply their images from a file, the command
Button..image = MyFile.MyImageItem
should work. It does not. No one knows whay, but it doesn't.
The same works perfectly for image controls
Image..image = MyFile.MyImageItem
is OK.
Problem with buttons has been reported with WinDev 9 already, no fix until today.
Regards,
Guenter