Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sushil353
Master II
Master II

Is it possible to change the image of a button?

Hi All,

In my application i have used a image for a button...is it possible to change the image whenever i clicked on button.

Thanks

Sushil

3 Replies
Anonymous
Not applicable

Hi Sushil,

Try using a text object. Set the image you want to use as the background.

And add the actions you want to use to the Text object.

Good Luck.

Dennis.

Anonymous
Not applicable

Sorry missread.

Yes you can do this by using a variable as a trigger.

I will work it out and get back to this later.

Anonymous
Not applicable

Here is an idea,

Make 2 buttons of the same size and with the same actions but with 2 different images.

Make a variable fe vShow

Add to button 1 an action that set  vshow=1

Add to button 2 an action that set  vshow=2

Now use the Conditional show option and put the buttons on top of each other.

That should do the trick I think.

Hope it helps

Dennis.