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 related question
Re: TabCtrl related question [message #55136 is a reply to message #55124] Tue, 13 October 2020 14:25 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14260
Registered: November 2005
Ultimate Member
omari wrote on Mon, 12 October 2020 23:21
you can replace TopWindow with ParentCtrl,
class MainWindow : public WithMainWindowLayout<ParentCtrl>, public CallbackQueue, public Reader::Notify, public Writer::Notify, public RpcCmder::Notify

then

	TabDlg dlg;
	MainWindow tab[5];
	
	for(int i = 0; i < 5; i++)
	    dlg(tab[i], String("Tab")<<i);

        dlg .OKCancel()
	   .Title("Tab dialog");
	dlg.Run();





I believe it should work with TopWindow too... (thats just BTW, ParentCtrl is the correct approach)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do I change TabCtrl tab size
Next Topic: [PROPOSAL] Adding GetCtrlGroup() method to TabBarCtrl.
Goto Forum:
  


Current Time: Mon Jun 02 22:55:07 CEST 2025

Total time taken to generate the page: 0.02697 seconds