Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TabCtrl » TabCtrl (or equivalen) with tabs on left side
TabCtrl (or equivalen) with tabs on left side [message #27941] Wed, 11 August 2010 15:26 Go to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I have little space in vertical direction, so if the tabs are on the left side would be OK. But it seems not supported by the standard Ctrl.
Is there something useful in Bazaar? I had a look at it but with too many "Tabs" around I was a bit confused and I do not know which is stable and supported. Any suggestion?

Thank you,
Luigi
Re: TabCtrl (or equivalen) with tabs on left side [message #27945 is a reply to message #27941] Wed, 11 August 2010 17:41 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

forlano wrote on Wed, 11 August 2010 15:26

Hello,

I have little space in vertical direction, so if the tabs are on the left side would be OK. But it seems not supported by the standard Ctrl.
Is there something useful in Bazaar? I had a look at it but with too many "Tabs" around I was a bit confused and I do not know which is stable and supported. Any suggestion?

Thank you,
Luigi

Hi Luigi,

The TabBar from mrjt should be able to do that. At least according to the picture in this thread Smile

Honza
Re: TabCtrl (or equivalen) with tabs on left side [message #27966 is a reply to message #27945] Thu, 12 August 2010 10:53 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
dolik.rce wrote on Wed, 11 August 2010 17:41


The TabBar from mrjt should be able to do that. At least according to the picture in this thread Smile

Honza



Thanks Honza,

I had a look at it.
In TabBarCtrlTest example I was not able to find a method to put the tabs on the left side.
In FileTabs example I was able to orient the tabs but I have not understood how to associate to each tab a specific layout.

Perhaps I am missing something easy to see.
Luigi
Re: TabCtrl (or equivalen) with tabs on left side [message #28042 is a reply to message #27966] Fri, 13 August 2010 16:29 Go to previous messageGo to next message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
FileTabsExample::main.cpp:11
	for (int i = 0; i < 4; i++)
		bar[i].SetAlign((i+1) % 4);


TabBar.cpp:39
	AlignedFrame& SetAlign(int align) { layout = align; FrameSet(); RefreshParentLayout(); return *this; }
	AlignedFrame& SetLeft()		{ return SetAlign(LEFT); }
	AlignedFrame& SetTop()		{ return SetAlign(TOP); }
	AlignedFrame& SetRight()	{ return SetAlign(RIGHT); }
	AlignedFrame& SetBottom()	{ return SetAlign(BOTTOM); }	
Re: TabCtrl (or equivalen) with tabs on left side [message #28093 is a reply to message #28042] Sun, 15 August 2010 13:45 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
kohait00 wrote on Fri, 13 August 2010 16:29

FileTabsExample::main.cpp:11
	for (int i = 0; i < 4; i++)
		bar[i].SetAlign((i+1) % 4);


TabBar.cpp:39
	AlignedFrame& SetAlign(int align) { layout = align; FrameSet(); RefreshParentLayout(); return *this; }
	AlignedFrame& SetLeft()		{ return SetAlign(LEFT); }
	AlignedFrame& SetTop()		{ return SetAlign(TOP); }
	AlignedFrame& SetRight()	{ return SetAlign(RIGHT); }
	AlignedFrame& SetBottom()	{ return SetAlign(BOTTOM); }	



Thank you,

IŽll try as soon as possible.
Luigi
Re: TabCtrl (or equivalen) with tabs on left side [message #28121 is a reply to message #28093] Tue, 17 August 2010 17:30 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
kohait00 wrote on Fri, 13 August 2010 16:29

FileTabsExample::main.cpp:11
	for (int i = 0; i < 4; i++)
		bar[i].SetAlign((i+1) % 4);


TabBar.cpp:39
	AlignedFrame& SetAlign(int align) { layout = align; FrameSet(); RefreshParentLayout(); return *this; }
	AlignedFrame& SetLeft()		{ return SetAlign(LEFT); }
	AlignedFrame& SetTop()		{ return SetAlign(TOP); }
	AlignedFrame& SetRight()	{ return SetAlign(RIGHT); }
	AlignedFrame& SetBottom()	{ return SetAlign(BOTTOM); }	



Sorry to bother again... but I do not catch how to use the AlignedFrame& to left set the bar in the TabBarCtrlTest... I am becoming older and older Smile

Luigi
Re: TabCtrl (or equivalen) with tabs on left side [message #28123 is a reply to message #28121] Tue, 17 August 2010 18:17 Go to previous messageGo to next message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
sorry, forgot to add one line in the post
//set a different align for all 4 TabBar's
	for (int i = 0; i < 4; i++)
		bar[i].SetAlign((i+1) % 4);
//add only the first to main application window, the others on demand
	AddFrame(bar[0]);


you add the TabBars as Frames to your main application Ctrl (or whereever you need them)
Re: TabCtrl (or equivalen) with tabs on left side [message #29999 is a reply to message #27941] Thu, 02 December 2010 13:49 Go to previous message
AnnabelleR is currently offline  AnnabelleR
Messages: 4
Registered: November 2010
Location: Usa
Junior Member
Forlano thank you for providing the information.I will try it as well.
Previous Topic: how to tell which tab is which
Next Topic: TabBar code fixes patch (SVN r2960)
Goto Forum:
  


Current Time: Fri Mar 29 09:37:22 CET 2024

Total time taken to generate the page: 0.01355 seconds