send menupick

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Sep 20 15:45:55 EDT 2007


Hi :-)

Le 20 sept. 07 à 21:12, Thierry a écrit :

> Hi,
>
> i have a tab button with 3 buttons
> and a menupick handler associated with.
>
> from another mouseup handler ( outside of the tab menu ),
> I use the command:
>         send "menupick  infos, Log" to button "Tab Menu"
>
> It works as expected , the menupick handler is fired,
> but the buttons are not refreshed,
> and the previous one is still hilighted.
>
> What did I missed that it doesn't work ?

set the menuHistory of btn "Tab Menu" to lineoffset("infos",btn "Tab  
Menu")
This will select the correct tab and the engine will send 'MenuPick'  
for you to the tabbed button.
See 'menuHistory' property in the docs.

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list