OK, so that's pretty straight-forward.

Once the user makes a choice from either an option menu or a combo box, you can get the choice:

In both cases, the current user choice is sored as the label of the object:

put the label of button "choicemaker1" into scriptLineToAdd


On Oct 3, 2005, at 1:03 PM, Bob Hartley wrote:

You wrote:

Hi Dan


Not sure exactly what you mean by that question, but if you use a combo box (I assume that's what you meant and not an option box, which doesn't exist), you don't have to do any programming to get the user's selection to show up in the box portion of the object. That's built-in behavior.


It was an option menu, but a combo box will do.

What I want is a preference stack with a box or menu that has things on it
like
2 fields
3 fields
4 fields

Depending on the choice, it adds the script into a button. eg a ficticious
one.
on mouseup
copy 3 fields to stack xyz
end mouseup


IE it is a way of allowing the enduser to modify the function of a button
from a list of choices.

Cheers
Bob



Just set the alternative choices in the Property Inspector for the combo
box and, voila!, done.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, "Revolution:
Software at the Speed of Thought"
 From http://www.shafermediastore.com/tech_main.html


_______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe,
unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.shafermediastore.com/tech_main.html


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to