Getting the ID of an button's icon

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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Getting the ID of an button's icon

Post by richmond62 » Wed Apr 05, 2023 1:45 pm

This does NOT work:
-
SShot 2023-04-05 at 15.43.38.png
SShot 2023-04-05 at 15.43.38.png (47.97 KiB) Viewed 2337 times
-
Which is very odd indeed: especially as the ID of the icon in question IS 1003.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting the ID of an button's icon

Post by richmond62 » Wed Apr 05, 2023 1:48 pm

Equally frustrating:
-
SShot 2023-04-05 at 15.47.47.png
SShot 2023-04-05 at 15.47.47.png (51.05 KiB) Viewed 2335 times

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

Re: Getting the ID of an button's icon

Post by Klaus » Wed Apr 05, 2023 2:39 pm

Just query the ICON, that is the id of the icon:

Code: Select all

...
put the icon of btn "B1"
...

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting the ID of an button's icon

Post by richmond62 » Wed Apr 05, 2023 2:44 pm

Thanks, Klaus. 8)

Post Reply