U++ framework
Do not panic. Ask here before giving up.

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: 1268
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: Mon Jun 29 13:47:24 GMT+2 2026

Total time taken to generate the page: 0.00540 seconds