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 |
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.
Regards.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sat, 22 February 2014 15:38] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 12 19:07:58 CEST 2024
Total time taken to generate the page: 0.01713 seconds
|