Form Builder issues [solved]
« on: 02 July 2013, 21:06:41 »
Is Form Builder supposed to be fully functional? I've had nothing but issues with it. Images for the various widgets appear wrong or corrupted, it crashes when changing the text size of a label, etc. If it's not supposed to be functional that's fine, I just want to make sure I'm not having some weird issue with it.

Thanks
« Last Edit: 19 July 2013, 22:16:34 by syndicatedragon »

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Form Builder issues
« Reply #1 on: 03 July 2013, 00:21:58 »
It is supposed to be working. I don't test it much, but there shouldn't be problems with it.
I recently build the one that is included with the latest 0.6 version, and I didn't see a problem at first sight (I only quickly added some objects and moved them around).

Could you be a little more specific about what version you have downloaded?
Did you download tgui v0.5 or v0.6-dev? If v0.6 then did you just download it or a did you download it few days ago (so that I know if it is the latest version or one from a few days old)?

Just in case that it would be OS specific, can you also tell me what OS you use and which compiler? Then I can make the test in the same circumstances.

Edit: Can I safely assume that drawing images with sfml isn't a problem and that it really is the form builder? I don't want to start debugging only to find out later that it was just a driver issue.
« Last Edit: 03 July 2013, 00:24:38 by texus »

Re: Form Builder issues
« Reply #2 on: 03 July 2013, 01:26:19 »
I don't have any issues with my application which uses both SFML and tgui. I'd like to say that I really like using tgui thus far. It's pretty easy to get something simple working, yet it seems pretty flexible too.

I downloaded the latest dev snapshot, but that was probably a couple of weeks ago. I will grab the latest again and try that.

Is there a link to the github repo so I can keep up to date that way?

I'll let you know how it goes.

Thanks

edit- I found the link on github, I'll grab the latest that way
« Last Edit: 03 July 2013, 02:36:20 by syndicatedragon »

Re: Form Builder issues
« Reply #3 on: 03 July 2013, 20:06:40 »
Built the lastest. Form Builder seems to work better. The widgets seem to have the proper images. However it still crashes every time I try to edit or resize Label object text.

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Form Builder issues
« Reply #4 on: 03 July 2013, 21:08:19 »
It has been fixed now.
I deleted the width and height properties from label some time ago and apparently they were still used when changing the text or text size.

Re: Form Builder issues
« Reply #5 on: 04 July 2013, 03:54:48 »
If you click on the background color field in the Label properties, it crashes.

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Form Builder issues
« Reply #6 on: 04 July 2013, 11:14:07 »
Strange, I can't reproduce that.

Edit: tested on linux and on windows with GCC/MinGW for both the previous version and the latest version. I doesn't crash here.
« Last Edit: 04 July 2013, 11:24:45 by texus »

Re: Form Builder issues
« Reply #7 on: 04 July 2013, 17:45:38 »
Hmm. Seems to crash on any color related field on any widget, or the config file field on any widget.

This is the release build made with Visual Studio Express 2010. I'm running Windows 7 x64.

When I get some time I'll see if I can set up the debugger on it.
« Last Edit: 04 July 2013, 17:52:03 by syndicatedragon »

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Form Builder issues
« Reply #8 on: 04 July 2013, 18:54:25 »
While debugging with VS2010 I only found an assertion when selection the text from any edit box.
So you might want to try and remove the '-1' from the end of line 1711 in EditBox.cpp.

If this doesn't fix your issue then it would indeed be best to debug it yourself. I currently have to borrow a laptop from someone to test on windows and I can't do much either when I can't reproduce it or when I don't have a call stack.

Re: Form Builder issues
« Reply #9 on: 05 July 2013, 20:17:07 »
I figured out my problem. I was using the SFML VC11 dlls. I copied FormBuilder to my "clean" Windows 7 VM and it was complaining about MSVCR110.dll! I thought, that's weird... and then I remembered at some point in the past I was playing around with VS2012 and decided it was not all that great for Windows 7 development (it seems rather Windows 8 focused). So I must have installed the VC11 version of SFML at that point.

I installed the VC10 version of SFML and re-built TGUI and now everything seems to work fine.

Thanks for your help though!