Page 1 of 1

Changing the tab names of a tabbed panel via script

Posted: Sat Mar 08, 2014 2:58 pm
by danielrr
This is an easy one (hope not a silly one) How do you change the tab labels of a tabbed-panel button via script?

Something like:

Code: Select all

set the tabs of btn "foo" to labelsList
does nothing.
best,
Daniel

Re: Changing the tab names of a tabbed panel via script

Posted: Sat Mar 08, 2014 3:02 pm
by BvG
it's a bit weird, you have to set the text of the button to a list of lines:

set the text of button "tabs" to "entry 1" & return & "entry 2" & return & "entry 3"

Re: Changing the tab names of a tabbed panel via script

Posted: Sat Mar 08, 2014 3:34 pm
by danielrr
Yes!! it works. Thanks Björnke