drop-down button

Richmond richmondmathewson at gmail.com
Mon Nov 2 12:33:23 EST 2015


On 02/11/15 13:16, Peter TB Brett wrote:
>
>
> On 02/11/2015 11:01, Richmond wrote:
>> On 02/11/15 12:46, Ian McKnight wrote:
>>> Put the default keyword in and it should work fine
>>>
>>> switch FFFFONT
>>> Default
>>>    set the textFont of fld "OOT" to FFFFONT
>>> end switch
>>>
>>> Regards
>>>
>>> Ian
>>
>> Thanks so much: quick and to the point.
>>
>> I wonder how newbies are going to find that one out?
>
> By reading the documentation for "switch", presumably:
>
> http://livecode.com/resources/api/#livecode_script/switch

Quite.

I had overlooked the whole SWITCH thing, as am 100% familiar with switch 
as my Devawriter Pro depends on it.

>
> Why do you need a "switch" here anyway?  Why can't you just do:
>
>    on menuPick pFont
>       set the textFont of field "OOT" to pFont
>    end menuPick
>
>                               Peter
>

Dunno: grabbed an old bit of code I found lying around . . .

Richmond.




More information about the use-livecode mailing list