Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - therealcain

Pages: [1]
1
Help requests / 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?

2
Help requests / ChildWindow Questions
« on: 22 December 2017, 16:10:43 »
Hello, i have few questions about the ChildWindow Widget.

1. How can i check if my ChildWindow has been exited?
2. When the ChildWindow has been exited, can i reopen it ?
3. When i exit the ChildWindow is he destroying automatically ?
4. Can i hide the Exit button ?
5. When ChildWindow is being destroyed all the other Ptr's inside the widget are being Deleted aswell ?

3
Help requests / Segmentation Fault when Accessing ListBox Item
« on: 20 December 2017, 19:09:06 »
hello,
I'm trying to print out the current selected item of
tgui::ListBox::Ptr
but i keep getting
Quote
Segmentation Fault ( Core Dumped )
here is my way to print:
std::cout << explorer -> getSelectedItem().toAnsiString() /*error*/ << std::endl;
gdb error:
Quote
0x00007ffff776a634 in sf::String::String(sf::String const&) () from /usr/lib/x86_64-linux-gnu/libsfml-system.so.2.4
here is backtrace:
Quote
#0  0x00007ffff776a634 in sf::String::String(sf::String const&) () from /usr/lib/x86_64-linux-gnu/libsfml-system.so.2.4
#1  0x00007ffff7462551 in tgui::ListBox::getSelectedItem() const () from /usr/local/lib/libtgui.so.0.7.6
#2  0x000055555556578f in Filesystem::Filesystem(bool)::{lambda()#1}::operator()() const ()
#3  0x000055555556825d in void std::__invoke_impl<void, Filesystem::Filesystem(bool)::{lambda()#1}&>(std::__invoke_other, Filesystem::Filesystem(bool)::{lambda()#1}&) ()
#4  0x000055555556821e in std::__invoke_result<Filesystem::Filesystem(bool)::{lambda()#1}&>::type std::__invoke<Filesystem::Filesystem(bool)::{lambda()#1}&>(std::__invoke_result&&, (Filesystem::Filesystem(bool)::{lambda()#1}&)...) ()
#5  0x00005555555681e6 in void std::_Bind<Filesystem::Filesystem(bool)::{lambda()#1} ()>::__call<void>(std::tuple<>&&, std::_Index_tuple<>) ()
#6  0x00005555555680f3 in void std::_Bind<Filesystem::Filesystem(bool)::{lambda()#1} ()>::operator()<, void>() ()
#7  0x0000555555567f6e in std::_Function_handler<void (), std::_Bind<Filesystem::Filesystem(bool)::{lambda()#1} ()> >::_M_invoke(std::_Any_data const&) ()
#8  0x00007ffff738f262 in tgui::Signal::operator()(unsigned int) () from /usr/local/lib/libtgui.so.0.7.6
#9  0x00007ffff73f20ed in void tgui::SignalWidgetBase::sendSignal<sf::String>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, sf::String) ()
#10 0x00007ffff73efa3c in tgui::Button::leftMouseReleased(float, float) () from /usr/local/lib/libtgui.so.0.7.6
#11 0x00007ffff73748d6 in tgui::Container::handleEvent(sf::Event&) () from /usr/local/lib/libtgui.so.0.7.6
#12 0x00007ffff7374c3d in tgui::Container::leftMouseReleased(float, float) () from /usr/local/lib/libtgui.so.0.7.6
#13 0x00007ffff7410a84 in tgui::ChildWindow::leftMouseReleased(float, float) () from /usr/local/lib/libtgui.so.0.7.6
#14 0x00007ffff73748d6 in tgui::Container::handleEvent(sf::Event&) () from /usr/local/lib/libtgui.so.0.7.6
#15 0x00007ffff737abfd in tgui::Gui::handleEvent(sf::Event) () from /usr/local/lib/libtgui.so.0.7.6
#16 0x000055555555c109 in Window::loop() ()
#17 0x000055555555bcd0 in main ()
what am i doing wrong ?

Pages: [1]