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 #2124 is a reply to message #2123] Sat, 01 April 2006 21:09 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13979
Registered: November 2005
Ultimate Member
fudadmin wrote on Sat, 01 April 2006 14:03

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?


Ooops, should be "label".

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 21:35:55 CEST 2024

Total time taken to generate the page: 0.02728 seconds