Welcome! Log In Create A New Profile

Advanced

direct setting of button..image from Myfile.Myimage does not work

Posted by Jimbo 

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

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: