IOS - Set visible to True for an Image Control

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
uniqueiosfreak
Posts: 8
Joined: Sat Jan 15, 2011 5:32 pm

IOS - Set visible to True for an Image Control

Post by uniqueiosfreak » Sun Jan 16, 2011 5:06 pm

I would be very grateful if someone could offer an example line of code for setting the visible on an Image Control to true using the image ID number?

I have 50 Image Control's on screen and want to make some invisible to shown other images behind them at certain times. I've set all my image IDs to 6000 onwards, 6001 etc so once I know the syntax for the above, I can control them all within a loop.

uniqueiosfreak
Posts: 8
Joined: Sat Jan 15, 2011 5:32 pm

Re: IOS - Set visible to True for an Image Control

Post by uniqueiosfreak » Sun Jan 16, 2011 5:29 pm

Answering my own post as hit on it through pure luck playing about:

set the visible of image ID "5548" to "false"

Klaus
Posts: 14183
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: IOS - Set visible to True for an Image Control

Post by Klaus » Sun Jan 16, 2011 6:04 pm

Hi,

or simply:
hide img "name of image"
resp:
show img "name of image"

Less typing :wink:


Best

Klaus

Post Reply