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 » How to reference value of an item on a layout?
Re: How to reference value of an item on a layout? [message #32579 is a reply to message #32578] Wed, 25 May 2011 21:06 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1215
Registered: August 2007
Senior Contributor
silverx wrote on Wed, 25 May 2011 21:09

I have tried lots of ways to reference or get the value of an input item on a layout. All seem to get an error.

I even tried what was on the video example of (int)~layoutname.fieldname, and still get errors.

Tried funcmid::funcmid.inStart.GetData();
where funcmid is the layout name. I have tried without the second funcmid, so it was just funcmid.inStart.GetData(); and still errors.

How does one reference or get the value of an input field?

Also how does one change the text on a label for an label on a layout?

All I get is errors about it.

There has to be an easy way to do this?

I have gotten buttons to perform an action when pushed, but haven't been able to change the text label on the button either.

David


Hi,
It is fairly easy. you don't have to perform any extra steps. Any widget can be accessed by their names, and they act just like regular U++ widgets.

I attached a very simple U++ example which demonstrates how to modify button labels on the fly and shows how to pass the content of an EditField to a static text box .

Regards.


[Updated on: Wed, 25 May 2011 21:13]

Report message to a moderator

 
Read Message icon13.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing hexadecimal to files
Next Topic: [SOLVED] I have a problem linking a LIB
Goto Forum:
  


Current Time: Fri Jul 18 11:52:04 CEST 2025

Total time taken to generate the page: 0.00564 seconds