Changing a button's image at runtime

I’m looking for a way to change a buttons image at runtime.

I have a locked form that has a button with an image of a locked locker. When the user presses this button the form becames editable and the locked locker image would be replaced by an unlocked locker image.

Is this possible?

mjekl

Yep! Doable. Use

elements.label.setImageURL('media:///myimage.gif')

Thank you Bob.

It beats the hell of the alternative - using tags a globals Smile
as in the CRM example.

mjekl