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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » How to combine two widget-class in the topwindow
Re: How to combine two widget-class in the topwindow [message #2047 is a reply to message #2039] Thu, 30 March 2006 22:04 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Thank you very much!

I've done some experiment. After adding another "InfoCtrl info2" the constructor look:

App::App()
{
    //initialize your members on App creation (constructor)
	numbers_enabled = false;
	AddFrame(menu);
	menu.Set(THISBACK(MainBar));

	//status stuff
	AddFrame(status);
	status.AddFrame(info1.Left(200));
//	status.Height(25);
	info1=" info1: Welcome to the Ultimate++ !";

	status.AddFrame(info2.Left(200));
//	AddFrame(status.Height(25));
	info2=" info2: Welcome to the Ultimate++ !";
}


So, if I've understood, a complex interface with many classes should be merged in the constructor of the application.
I hope to be able now to add a tabbed window (with 4 pages) between the menu and the status bar.
Because each page contains several widgets I'm afraid that the final constructor of the application will become a mess.
I hope to write for each page a class and simply invoke it in order to simplify the constructor. Perhaps I must create just a big widget to attach it somewhere in the page. In Motif this was possible. Are there example about the creation of a Widget?
(Please be patient if I said silly thing... I'm just starting Smile )

Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mouse over button example -"catch me if you can..."
Next Topic: "Forlano tabs" - how to reduce a headache by the proper use of the designer...
Goto Forum:
  


Current Time: Sun May 12 14:46:16 CEST 2024

Total time taken to generate the page: 0.02806 seconds