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 #2104 is a reply to message #2101] Sat, 01 April 2006 12:34 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
I've included your lines and now the constructor is the following:

#include <CtrlLib/CtrlLib.h>
App::App()
{
    //initialize your members on App creation (constructor)
	numbers_enabled = false;
	AddFrame(menu);
	menu.Set(THISBACK(MainBar));

	//tabs stuff
    //AddFrame(tabs); // doesn't work
	Add(tabs.SizePos()); //fills all available space...
	tabs.Add("one");
	tabs.Add("two");
	tabs.Add("three");
	tabs.Add("four");

	//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++ !";
}
}


As you see I tried to use a Frame even for tabs, but I got weird things on the screen. I've not clear when the Frame should be used. May I change its look?

The next step is to fill tab "one". As test case I would like to get a simplified version of the AddressBook package (without menu) and realize a sort of widget-class. Then attach it in tab "one".
I hope to realize it in a reasonable time (I'm not going to use the designer).

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 16:52:59 CEST 2024

Total time taken to generate the page: 0.02412 seconds