Help with assigning values to buttons

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Stormy1
Posts: 31
Joined: Tue Jul 14, 2009 1:47 pm

Help with assigning values to buttons

Post by Stormy1 » Sun Jul 19, 2009 1:39 pm

Hi Everyone

I have an admin area of my program where the user can assign any of 10 or more popup graphics to one of 4 buttons. The way they chose is via a dropdown menu underneath each button.

What I need to do is to then assign this action to the corresponding four buttons within the software itself.

The admin area is a different stack to the program.
The actions are cards within a substack which have graphics and audio.

Essentially, what I can't do is find a way of when the user selects from the dropdown, is to then tell the four buttons in the program to activate that particular graphic.

Thanks

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Jul 19, 2009 3:45 pm

Dear Stormy1,

Values, graphics, actions,... What do you want exactly?

If you want to change the icon of a button, you can use the following syntax:

set the icon of btn x to <short id of image>

but I'm not sure that this is what you're asking.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply