Ken,

You are indeed correct. I played with this for awhile and it works fine. It
turns out the script example in the MenuMode stack is still incorrect. It
says (as does your example)

on menuPick oldTab,newTab

instead is should read:

on menuPick newTab,oldTab

If you check the documentation on 'menuPick' you will see it is correct. I
became confused as this is the first time I have used a tabbed button object
and used the incorrect script. My bad. The reference stack should be fixed
though.

best,
Chipp

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ken Ray
Sent: Thursday, December 06, 2001 6:04 PM
To: [EMAIL PROTECTED]
Subject: Re: menuPick bug and the documentation...


Chipp,

The "oldtab,newtab" works for me just fine. If you say "show group
menupick", you'd better have a group called "menupick" because it translates
into a string value and not the selection.

To test, I made a default tab button (which has three tabs, "Tab 1", "Tab 2"
and "Tab 3") and put this script in it:

on menupick
  put oldTab &","& newtab &","& menuPick
end menupick

Then I switched to browse mode and clicked "Tab 2", I got back this:

Tab 1,Tab 2,menupick

... which is what I expected. Can you try this test and see if it works for
you?

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Chipp Walters" <[EMAIL PROTECTED]>
To: "Improve-Revolution" <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 3:41 PM
Subject: menuPick bug and the documentation...


> In the help stack under MenuMode the following is written regarding
> processing Tab Mode buttons:
>
> on menuPick oldTab,newTab -- sent when user clicks a tab
>     lock screen -- hide the swap
>     hide group oldTab
>     show group newTab
>     unlock screen
> end menuPick
>
> The second parameter 'newTab' is not sent on my system (WinXP). I believe
> the correct script should be:
>
> on menuPick oldTab -- sent when user clicks a tab
>     lock screen -- hide the swap
>     hide group oldTab
>     show group menuPick
>     unlock screen
> end menuPick
>
> -Chipp
>
>  ----------------------------
> |    ___   ____       _ __   |
> |   / _ | / / /___ __(_) /_  |
> |  / __ |/ / __/ // / / __/  |
> | /_/ |_/_/\__/\_,_/_/\__/   |
> |   http://www.altuit.com    |
>  ----------------------------
>
> _______________________________________________
> improve-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/improve-revolution
>

_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution

_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution

Reply via email to