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 » How do I change TabCtrl tab size
Re: How do I change TabCtrl tab size [message #52745 is a reply to message #52673] Sat, 16 November 2019 11:09 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You can define your own Style, change tabheight.

GUI_APP_MAIN
{
	static TabCtrl::Style big_tab = TabCtrl::StyleDefault();
	ONCELOCK {
		big_tab.tabheight = Zy(100);
	}

	TopWindow win;
	TabCtrl tab;
	tab.SetStyle(big_tab);
	tab.Add("Test");
	win.Add(tab.SizePos());
	win.Run();
}


(Note that Style has to be static or global).

Alternatively, you can do that for all TabCtrls:

GUI_APP_MAIN
{
	TabCtrl::Style& s = TabCtrl::StyleDefault().Write();
	s.tabheight = Zy(100);

	TopWindow win;
	TabCtrl tab;
	tab.Add("Test");
	win.Add(tab.SizePos());
	win.Run();
}


Mirek
 
Read Message
Read Message
Read Message
Previous Topic: trouble with tabs
Next Topic: TabCtrl related question
Goto Forum:
  


Current Time: Mon Apr 29 13:28:01 CEST 2024

Total time taken to generate the page: 0.02683 seconds