PDA

View Full Version : Change test of static text control



ernpchan
03-18-2015, 04:01 PM
Is it possible to change the text of the text_ctl item after it's been created? With the string_ctl it's done via set_str().

Styler
03-20-2015, 01:57 PM
I guess it just broken or not implemented.

ernpchan
03-21-2015, 10:43 AM
I guess it just broken or not implemented.

Hard to diagnose if it's a bug or just my lack of understanding of the syntax.

Sensei
03-21-2015, 12:14 PM
Is it possible to change the text of the text_ctl item after it's been created? With the string_ctl it's done via set_str().

Did you tried using set_str() on your control?

There is also STRRO_CTL() (read-only string control).

ernpchan
03-21-2015, 12:30 PM
Yeah, it didn't do anything. Static text takes an array of strings and not a single string like the editable string control. So set_str doesn't work. I'll try the read only one though. Didn't know that existed.

ernpchan
03-21-2015, 09:22 PM
Did you tried using set_str() on your control?

There is also STRRO_CTL() (read-only string control).

This looks to work. It's not as pretty as lscript but it'll do.