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 #2122 is a reply to message #2121] Sat, 01 April 2006 20:48 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



Or, yes, like this. But in this case some strange symbols <..> come to help and instantiation of children(daughters-labels) is achieved by labels.Add() - each label is then created "inside".
 
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 21:29:48 CEST 2024

Total time taken to generate the page: 0.01972 seconds