Editbox - text changed signal

Started by therealcain, 26 December 2017, 17:54:55

therealcain

Hello,
Is there any signal that being called when text has been changed in a Editbox?

texus

Yes, "TextChanged" :)
Code (cpp) Select
editBox->connect("TextChanged", [](sf::String text){});

The signals of the widgets are documented under the "detailed description" section in the docs: https://tgui.eu/documentation/v0.7/classtgui_1_1EditBox.html#details

therealcain

Quote from: texus on 26 December 2017, 18:48:25
Yes, "TextChanged" :)
Code (cpp) Select
editBox->connect("TextChanged", [](sf::String text){});

The signals of the widgets are documented under the "detailed description" section in the docs: https://tgui.eu/documentation/v0.7/classtgui_1_1EditBox.html#details

Oh, i couldn't find at https://tgui.eu/tutorials/v0.7/signals-introduction/.
Didn't know there are signals on the documentation.

texus

Yeah, they aren't where you would expect them. I should add a list somewhere but I never find the time for it. They are a bit hidden in the documentation right now, you can't even find them all at one place, you have to manually look at the base class to find which signals are inherited.