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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Getting the ID of an button's icon

Post by richmond62 »

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 2924 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: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting the ID of an button's icon

Post by richmond62 »

Equally frustrating:
-
SShot 2023-04-05 at 15.47.47.png
SShot 2023-04-05 at 15.47.47.png (51.05 KiB) Viewed 2922 times
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting the ID of an button's icon

Post by Klaus »

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: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting the ID of an button's icon

Post by richmond62 »

Thanks, Klaus. 8)
Post Reply