tabs

Dave Cragg dcragg at lacscentre.co.uk
Thu Feb 20 08:00:00 EST 2003


At 1:43 pm +0100 20/2/03, Klaus Major wrote:
>Hi Valetia,
>
>>  Hey Klaus,
>>
>>>>      set the menuHistory of button "My Tabbed Button" to 3
>>>>      send "mouseUp" to button "My Tabbed Button"
>>>
>>>  you can even omit the second line :-)
>>>  (send mouseup...)
>>
>>  I had also thought that you could omit the second line. However I have a
>>  stack that does require the second line, otherwise only the tab changes (the
>>  related "mouseUp" action doesn't automatically occur).
>>
>>  Valetia
>
>good to know.
>
>I will add this line to all my handlers, especially those,
>who work as exspected (until now ;-).

When you set the menuhistory, a "menuPick" mesage gets sent to the 
button. So if you handle the tab selections in a menuPick handler 
(the normal way, I think), just setting the menuHistory is enough. 
But if you need to handle mouseUp too, then you'll have to send that 
yourself.

Cheers
Dave



More information about the use-livecode mailing list