Align tabs on tab panels to the right

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
steve10
Posts: 85
Joined: Fri May 13, 2011 9:38 am

Align tabs on tab panels to the right

Post by steve10 » Fri Jul 08, 2011 4:18 pm

Tabs on the tab panel are left aligned. Is there a way to align them with the right edge of the tab panel as in the second graphic?
now.png
The way it is
now.png (1000 Bytes) Viewed 3175 times
want.png
The way I want it
want.png (1.46 KiB) Viewed 3175 times
Steve

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

Re: Align tabs on tab panels to the right

Post by Klaus » Fri Jul 08, 2011 4:31 pm

Hi Steve,

I'm afraid you can't, since this control (like most others) is supplied by the underlying OS!
On the Mac the TABS are always centered, see screenshot :D

You will need to "roll your own". 8)


Best

Klaus
Attachments
Mac_tabs.jpg
Mac_tabs.jpg (10.1 KiB) Viewed 3171 times

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Align tabs on tab panels to the right

Post by BarrySumpter » Tue Jul 26, 2011 1:21 am

Rolling your own:

LiveCode | User Samples | Scrolling Tab Example

Might get you started.

hth
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

steve10
Posts: 85
Joined: Fri May 13, 2011 9:38 am

Re: Align tabs on tab panels to the right

Post by steve10 » Tue Jul 26, 2011 5:57 am

Thanks Klaus for sending me down the right path and thanks Barry for pointing me to the path's end. There's also a Custom Tab Button example.

Steve

Post Reply