Page 1 of 1

highlight a tab through script

Posted: Wed Apr 22, 2015 10:36 pm
by jalz
Hi

I have tab panel with 3 tabs, red, green, blue. The tab panel I have works quite well, showing and hiding groups depending on what tab is clicked.

However I wanted to know if it was possible to show the pressed state of a tab from an external button? I'm building a menu up, and although I know how to display/show the contents of group x, I can't seem to figure out how to show the tab x was selected.

Thanks as always
Jalz

Re: highlight a tab through script

Posted: Wed Apr 22, 2015 10:44 pm
by dunbarx
Hi.

Why, just:

answer the hilitedText of btn "yourTabPanel"

Craig Newman

Re: highlight a tab through script

Posted: Thu Apr 23, 2015 9:48 pm
by jalz
Thank you Craig :)

Re: highlight a tab through script

Posted: Thu Apr 23, 2015 11:04 pm
by Klaus
Hi Jalz,

you can also:
...
set the menuhistory of btn "your tabbed btn" to X
...
Where X = the NUMBER of the TAB.


Best

Klaus

Re: highlight a tab through script

Posted: Thu Apr 23, 2015 11:24 pm
by jalz
Cheers Klaus

I think thats a neater way for me to do it