Welcome, Guest. Please login or register. Did you miss your activation email?

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.


Messages - maxi1976

Pages: [1]
1
SFML projects / Re: TGUI: a c++ GUI for SFML (with Form Builder)
« on: August 20, 2012, 03:57:16 am »
There seems to be a nasty crash in the 0.5 version of TGUI with editboxes. I use SFML 2.0 RC.
It happens when you write something in an editbox and then highlight the first character in it, the same happens when you do a double left click in the editbox becouse that too would hightlight the first character.  The same functions work on textboxes perfectly without crashes.

The crash happens at the drawGUI() function
Microsoft Visual Studio C Runtime Library has detected a fatal error in insertnamehere.exe.

The culprit maybe the variable called m_SelChars. By editing the source code in EditBox.cpp
void EditBox::leftMousePressed(float x, float y) by setting m_SelChars to 0 instead of m_Text.getSize()
the crash seems to be gone, but it  ruins the highlighting.

Pages: [1]