Changing tab in Tab Panel

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

Changing tab in Tab Panel

Post by DavJans » Tue Aug 05, 2014 10:02 pm

is there a way to do this via script?
something like this?

Code: Select all

on openCard
set the selected tab of btn "Tab Panel 1" to 3
end openCard
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Changing tab in Tab Panel

Post by dunbarx » Tue Aug 05, 2014 10:34 pm

Hi.

A tab panel is just a button with a lot of properties. It has a "menuHistory" property. You can set and get that property at will. You can also get the "selectedText" of the current "tab". That sort of thing...

Craig Newman

DavJans
Posts: 275
Joined: Thu Dec 12, 2013 4:21 pm

Re: Changing tab in Tab Panel

Post by DavJans » Tue Aug 05, 2014 10:58 pm

omg thank you, I played around with meuHistory a little with no luck, since you mentioned it again I revisited and found my answer.

set the menuHistory of btn "Tracker Tab Menu" to 1

so simple but I missed it.
"Det bästa stället att hitta en hjälpande hand är i slutet av din egen arm" förutom här

Post Reply