Formbuilder Problem
« on: 28 July 2014, 01:07:35 »
Hi,

  First I would like to say, nice library. I'm excited to start using it. But I'm having a problem with the Form Builder. Most everything works fine, except when you try to reload a form to edit it. The forms will load, and you can add more, but there's two odd symptoms:

A) copying and pasting an existing control gets named oddly (often just "(2)")
B) when you save the form, all Widget IDs that were loaded are now blank "".

So basic reproduction is this:

Create a form, add some controls. Save it.

Close Formbuilder, and restart it.

Create a form (since Load doesn't appear at the start for some reason), then choose File->Load and load your form.  Add a new control, then save it.

Examine your form, all the old controls from the load have blank labels.

I'm working in VS2010, but I have tried the formbuilder from VS2013 and the formbuilder from the Git repository, they all behave the same.

Thanks for any help.

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Formbuilder Problem
« Reply #1 on: 28 July 2014, 01:15:17 »
Thanks for reporting, I have been able to reproduce it so it will be fixed soon.

I'll try to keep the form builder working for v0.6, but I haven't even decided yet if future versions will still have a form builder. With all the changes in v0.7 I would have to completely rewrite it, which is not something that I'm looking forward to.

*

texus

  • *****
  • 1143
    • View Profile
    • Texus's Blog
Re: Formbuilder Problem
« Reply #2 on: 28 July 2014, 01:59:13 »
The bugs should be fixed in the latest version now: https://github.com/texus/TGUI.

You will have to recompile the form builder yourself though, I don't feel like booting up my windows to compile the distributed executable right now.

Re: Formbuilder Problem
« Reply #3 on: 28 July 2014, 05:25:39 »
Thanks, that resolved it. :)