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 #2121 is a reply to message #2120] Sat, 01 April 2006 20:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13978
Registered: November 2005
Ultimate Member
Well, each label has to have its own variable (in U++, those variables are actual GUI elements, not just some info that is placed to dialog definition).

However, you can do this:

	Array<Label> label;
....
	labels.Add();
	label.Top().SetLabel(t_("Label 1"));
	label.Top().SetAlign(ALIGN_CENTER);
	label.Top().LeftPosZ(236, 48);
	label.Top().TopPosZ(96, 19);
	Add(label.Top());

	labels.Add();
	label.Top().SetLabel(t_("Label 2"));
	label.Top().SetAlign(ALIGN_CENTER);
	label.Top().LeftPosZ(136, 48);
	label.Top().TopPosZ(46, 49);
	Add(label.Top());


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: Sun May 12 18:15:06 CEST 2024

Total time taken to generate the page: 0.02060 seconds