making a popup insert text.
Dan Shafer
revdan at danshafer.com
Mon Oct 3 16:32:28 EDT 2005
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 use-revolution at lists.runrev.com Please visit this url to
>> subscribe,
>> unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> 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
More information about the use-livecode
mailing list