Editbox - text changed signal
« on: 26 December 2017, 17:54:55 »
Hello,
Is there any signal that being called when text has been changed in a Editbox?

*

texus

  • *****
  • 1276
    • View Profile
    • Texus's Blog
Re: Editbox - text changed signal
« Reply #1 on: 26 December 2017, 18:48:25 »
Yes, "TextChanged" :)
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

Re: Editbox - text changed signal
« Reply #2 on: 26 December 2017, 18:56:18 »
Yes, "TextChanged" :)
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

  • *****
  • 1276
    • View Profile
    • Texus's Blog
Re: Editbox - text changed signal
« Reply #3 on: 26 December 2017, 18:59:44 »
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.