Tab Panel without Panel

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
Leximatica
Posts: 4
Joined: Wed Apr 15, 2009 1:39 am

Tab Panel without Panel

Post by Leximatica » Wed Apr 15, 2009 1:41 am

I just want tabs, without any visible panel. How do I achieve this in RR?

Thanks.

acidjazz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 93
Joined: Mon Feb 16, 2009 2:37 am

Post by acidjazz » Wed Apr 15, 2009 7:18 am

In the property inspector, you could adjust the size of the tab panel so the height = 22. The tabs will show, but not the panel. Is this what you mean?

- Mark

Leximatica
Posts: 4
Joined: Wed Apr 15, 2009 1:39 am

Post by Leximatica » Wed Apr 15, 2009 1:37 pm

acidjazz wrote:In the property inspector, you could adjust the size of the tab panel so the height = 22. The tabs will show, but not the panel. Is this what you mean?

- Mark
Thanks Mark. Almost, but not quite. The panel is still visible to the left and right of the tabs. So I reduce the width of the panel as much as possible to hide it. But, no matter how much I reduce the width, a small portion of the panel always appears to the left of the first tab.

If I'm going to use the tab panel object provided, then evidently my only option is to create a paint/bitmap object and color over that excess portion of panel to match the background. I'll have to adjust the position of this mask on resize as well.

The whole thing is turning out to be a nasty kludge.

What grinds me is that the Run/Edit button on the main toolbar seems to be exactly what I'm looking for. Apparently the Runtime people have access to some special controls they are not providing to the masses.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Apr 15, 2009 3:01 pm

Dear Leximatica,

Those special controls are buttons with icons. You can do the same with a custom tab button. If you send me an e-mail, I'll send you an example.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply