(Solved) Change ImageGadget image at runtime

Just starting out? Need help? Post your questions and find answers here.
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

(Solved) Change ImageGadget image at runtime

Post by collectordave »

Is it possible to change the image in an imagegadget dynamically?

As mentioned here setgadgetstate works fine.
Last edited by collectordave on Wed Sep 16, 2015 6:42 am, edited 2 times in total.
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: Change ImageGadget image at runtime

Post by Keya »

SetGadgetState()
see ImageGadget from the helpfile Index for all options
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 536
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: Change ImageGadget image at runtime

Post by BasicallyPure »

like this,

Code: Select all

SetGadgetState(imageGadgetNumber, ImageID(imageNumber))
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
collectordave
Addict
Addict
Posts: 1309
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Change ImageGadget image at runtime

Post by collectordave »

Thanks working

this can be closed if I knew how
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Change ImageGadget image at runtime

Post by Vera »

Hi dave,
you won't find a 'close-thread-feature' as there is none.
The threads stay 'open' to allow further communication on the topic if wanted / needed.

If you prefer to state that the topic has found its solution you could edit your opening posting and therin alter the topic-title to e.g. Change ImageGadget image at runtime [solved] ... alike some members do now and then.

greets ~ Vera
Post Reply