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 » Community » Newbie corner » Upp GUI size in Win and Ubuntu
Re: Upp GUI size in Win and Ubuntu [message #40151 is a reply to message #40150] Sun, 23 June 2013 11:52 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
nlneilson wrote on Sat, 22 June 2013 22:24

This question is not concerning size but whether the text in a label can be changed. Label 11 is originally " Point 1" with:
	l1.SetLabel(t_(" Point 1")).SetFont(StdFont(11));


Could the text be changed to " Something" in an if block with:
	l1.SetLabel(t_(" Something")).SetFont(StdFont(11));

without changing the Label to EditField?

You already wrote the code to do this:
bool check = true;

Label l1;
l1.SetFont(StdFont(11));
// l1.SetLabel(t_(check ? " Point 1" : " Something"));
// or as external function, void ChangeLabel(bool check = true):
if (check)
	l1.SetLabel(t_(" Point 1"));
else
	l1.SetLabel(t_(" Something"));
 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Pick Semantics: Passing a Vector to a method
Next Topic: [Solved] SysInfo_Demo_Gui is where to find?
Goto Forum:
  


Current Time: Wed Apr 30 17:36:26 CEST 2025

Total time taken to generate the page: 0.04413 seconds