Number of display lines on a Option Menu
Randy Hengst
iowahengst at mac.com
Tue Feb 12 20:42:09 EST 2008
Hi Mark,
It is possible to set the option menu choices via a script -- rather
than entering them via the properties menu. That way you can have any
number of choices that you need and then change the options choices
so they are context sensitive. I used this method in a correct-the-
sentence program I made for a local teacher (known frequently as
Daily Oral Language in U.S. elementary schools). The correction
button displays different choices based on the part of the sentence
the students click on.
If you have an option button called demo, then place this script in
another button.
put "one" & return & "two" & return & "three" into button "demo"
The option choices will then be one, two and three in that order.
You can also place the choices in a variable and then put the
variable into the option button like this:
local tOptionsTemp
put "two" & return & "three" into tOptionsTemp
put tOptionsTemp into button "demo"
Now the button choices will read two, three
Sorry if I missed the point of your original post.
take care,
randy hengst
-----------------
On Feb 12, 2008, at 6:18 PM, mfstuart wrote:
>
> Awesome, thanx for the reply and image, Sarah.
> I/we will be waiting for this next version (2.9.0) for this property.
> Currently, I'm using 2.8.1 on WINXP.
>
> Thanx,
> Mark Stuart
More information about the use-livecode
mailing list