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 - texus

Pages: 1 ... 106 107 [108] 109 110
Installation help / Re: gcc errors in linux
« on: 09 July 2013, 00:22:08 »
Never saw that error before. Did you install  graphics drivers?

You should also try installing tgui 0.5 from the ppa as netrick already suggested. I guess it fits the best with the sfml version from the ppa.

Installation help / Re: gcc errors in linux
« on: 08 July 2013, 23:47:12 »
The sfml package from the ppa is the sfml2-RC version which only works with tgui v0.4.

The development version in the ppa contains the real sfml2 and tgui v0.5.

The errors about 'sf::Font' conversion to 'sf::Font*' do mean that the sfml version is not up-to-date and is still the RC version.

And tgui v0.4 is indeed very buggy, it shouldn't be used.

General Discussion / Re: Tgui without Boost
« on: 07 July 2013, 20:22:25 »
Yeah, ubuntu is the reason that I aim at gcc 4.6 instead of 4.7.
If it was up to me I would go for gcc 4.8 which I already have on my arch linux (antergos actually) for some time, but then nobody would use my gui anymore :).

But there is no rush to rewrite it to c++11 as it has no advantages (for the user of my gui) but has the disadvantage of not being supported by older compilers. The only good thing would be that the boost dependency would be removed.

Installation help / Re: Visual studio 2013 compile error
« on: 07 July 2013, 14:23:02 »
You have a nice day too.
Its hot here in Antwerp as well :).

Installation help / Re: Visual studio 2013 compile error
« on: 07 July 2013, 13:54:27 »
Ok, so the version that I just pushed to github should compile then.

Thanks for taking the time to investigate what was wrong.

General Discussion / Re: Tgui without Boost
« on: 06 July 2013, 15:02:31 »
Thanks, I'll use this when I start using c++11.
But once I start using c++11 I won't just get rid of boost, I will also use c++11 for the rest of the code, so this is only a small part of what I eventually will write. For tgui v0.6 I also aim to support at least VC++10 and GCC 4.6. So the use of c++11 will still be limited in v0.6.

Installation help / Re: Visual studio 2013 compile error
« on: 05 July 2013, 14:12:58 »
Did you read the msdn page about the error? Did you try changing optimization?

The error happens on line 2273, but the place that you say it stopped compiling in on a different line. Is this just a mistake or are there errors for other lines than 2273?
EDIT: The line numbers were messed up in my browser for some reason. Now I see that that code is indeed on line 2273.

I don't think I can change the code to solve this, it seems to be a problem with the compiler.

Help requests / Re: Form Builder issues
« 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.

Help requests / Re: Callback help!
« on: 04 July 2013, 14:56:51 »
I didn't look at the code in detail, but you aren't calling window.handleEvent in your event loop which is probably the problem.

In tgui v0.5 the headers aren't installed and you have to either copy the folder yourself like you did or set the path to the include folder in your code blocks settings (or as '-I' parameter to the compiler when using g++ directly).
In tgui v0.6 I have already changed it so that the files are installed correctly when calling "make install".

Help requests / Re: Form Builder issues
« 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.

Help requests / Re: Form Builder issues
« 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.

Help requests / Re: Loading object position etc from file
« on: 03 July 2013, 18:00:45 »
There is a small explanation on object files on the old site (which means outdated, but still usable).

You should also take a look at the FormObjectsWindow.txt in the Form Builder folder. It only gives an example for Picture and Button, but it always has the latest syntax (e.g. uses ConfigFile instead of Pathname).

Help requests / Re: Form Builder issues
« 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.

Help requests / Re: Object layout example
« on: 01 July 2013, 20:05:47 »
Grid will place your objects next to each other, so you don't have to set an exact position.
With the addToRow function you add the object to the right of the previous object and you can use addRow to go to the next row. The addToRow function also optionally takes borders as parameter to put some space between objects. So Grid can be used to make a menu screen by placing buttons beneath each other, without you having to worry about the exact position of the buttons. But Grid doesn't change the size of the objects, you have to set the size yourself.

Although Grid can be compared with the layouts from qt, it still has a lot of limitations.
Support for real layouts is pretty hard. I mostly have to consider how it will be designed, which functions it will have, ...
So this can't be expected before v0.7.

The stretched text is indeed problematic. Depending on where the text is you could draw it with sfml directly with a different view than the gui, but that isn't a great solution either.

Help requests / Re: Object layout example
« on: 01 July 2013, 18:22:02 »
What exactly are you talking about? I didn't add layouts.

There is only Grid so far, but this doesn't help against manually resizing.

Depending on what you want to do, you should use a different view to draw the gui. This will allow you to zoom without manually resizing objects.

Pages: 1 ... 106 107 [108] 109 110