Hiliting tab panel tabs on open card

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulgabel
Posts: 31
Joined: Tue Jun 19, 2007 7:03 pm
Contact:

Hiliting tab panel tabs on open card

Post by paulgabel » Sun Jul 15, 2007 9:28 pm

Rev Studio 2.8.1
Mac OS X 10.4.10
iMac Intel

I have a tab panel with six tabs. They all work fine when I click on a tab, but when I go (from outside the tabbed cards) to one of the cards that use this tab panel group background I want the corresponding tab to hilite (turn blue) so the user knows where he or she is. I can't seem to achieve this. I've tried numerous methods to no avail, though it's probably something simple I'm overlooking. Any suggestions?
Paul Gabel

Klaus
Posts: 14192
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun Jul 15, 2007 9:44 pm

Hi Paul,

yes, this is a bit tricky :-)

You can:
select line 1 of btn "Your tabbedbutton here..."
## Or any other line...

This will "hilite" the first TAB.


Best

Klaus

paulgabel
Posts: 31
Joined: Tue Jun 19, 2007 7:03 pm
Contact:

Thanks

Post by paulgabel » Sun Jul 15, 2007 10:08 pm

Thanks Klaus! This works fine. It wasn't at all intuitive (to me). :P
Paul Gabel

Klaus
Posts: 14192
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun Jul 15, 2007 10:24 pm

Hi Paul,

here is another not too inuitive hint concerning tabbed buttons:
If you want to simulate a "mouseclick on one of the TABS" you can use:

set the menuhistory of btn "tabbed button" to 1
## or any other (tab) number


Best

Klaus

Post Reply