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 #2051 is a reply to message #2047] Thu, 30 March 2006 22:17 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13979
Registered: November 2005
Ultimate Member
forlano wrote on Thu, 30 March 2006 15:04

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


Well, to define layout of subdialog, simply use layout desinger and design them visualy. Then craate member variable for each of layout (deriving from ParentCtrl) and add those member variables as tabs.

Mirek
 
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: Mon May 13 04:00:23 CEST 2024

Total time taken to generate the page: 0.02276 seconds