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 » Pointer on Labels defined in lay.h
Re: Pointer on Labels defined in lay.h [message #42128 is a reply to message #42127] Sat, 22 February 2014 15:34 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Hello Yeti,

If I understand you correctly, you want to manipulate the ctrls created within layout editor, right?

This is quite easy. When you create, say, a label or a button, or whatever ctrl you like in layout editor, first you should give it a name in the layout editor. Then use it like ordinary ctrls in your code.

For example in the below screenshot I named it "mylabel". When I want to change its text, I simply call "mylabel.SetText("foo");" in code. That's all.

I suggest you reading the examples and reference code in UPP source. They are usually self explanatory and will save your time a lot. Smile

Regards.


[Updated on: Sat, 22 February 2014 15:38]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dynamic Libraries __declspec(dllexport)
Next Topic: Problem when growing a vector
Goto Forum:
  


Current Time: Sun May 12 19:07:58 CEST 2024

Total time taken to generate the page: 0.01713 seconds