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 #2123 is a reply to message #2121] Sat, 01 April 2006 21:03 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Sat, 01 April 2006 19:36

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



Btw, now I'm lost - what is labels?
 
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 23:37:35 CEST 2024

Total time taken to generate the page: 0.02539 seconds