Thanks, Guys ! What a great group... THREE ways to do it, no less....
sqb
At 2:26 PM -0500 9/28/05, Ken Ray wrote:
No, you can "set the menuHistory of <buttonDescriptor> to <tabNumber>" which
not only changes the tab to the right tab, but it acts like the tab was
selected (i.e. it runs the menuPick handler).
For example, if you had a tabbed button with three tabs: "Apple", "Orange",
"Banana", and "Orange" was currently active and you wanted to change it so
that "Apple" is the current tab and acting like it was clicked on, you can
do:
set the menuHistory of btn "tabs" to 1
If you don't know the number, you can do this:
set the wholeMatches to true
set the menuHistory of btn "tabs" to lineOffset("Banana",btn "tabs")
If for some reason you want the tab to change, but you *don't* want to have
it run the menuPick handler, you can surround it with "lock messages", as
in:
set the wholeMatches to true
lock messages
set the menuHistory of btn "tabs" to lineOffset("Banana",btn "tabs")
unlock messages
Hope this helps,
Ken Ray
At 8:24 PM +0100 9/28/05, David Burgun wrote:
Hi,
You need to set the menuHistory property, this does it:
put lineoffset("OptionA", btn "my TAB button") into my_menuhistory
Hope this helps
Dave
At 12:38 PM -0700 9/28/05, Phil Davis wrote:
Besides setting the menuHistory of the tabbed button, you can also
select a line of the button. This will select the tab containing the
text in that selected line. Like this:
select line 2 of btn "tabs"
Phil Davis
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution