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

Pages: [1] 2
1
Sorry to have prevented you to sleep :P

You can also find a usage to setSize: it could resize the window, but it can be a bit dangerous... An other possibility is to add an option bool setSizeResizeWindow which is false by default. (But it is only to find an interesting behaviour for setSize, I don't need this personally).

2
But why you don't store a Window* in GuiContainer? There is no sense to set an other size that the window size, so I think you should not store directly the size but a Window*. That will avoid this problem.

3
General Discussion / Containers refactoring cause some problems
« on: 06 August 2013, 20:27:14 »
Hello,

You recently merged Container and ContainerWidget and updated Gui (creating ContainerGui). However, there are some bugs with the size of a ContainerGui when you (re)create the window subsequently.
For example:
Code: [Select]
sf::Window window;
window.create(sf::VideoMode(800, 600), "title");
tgui::Gui gui(window);
window.create(sf::VideoMode(1024, 768), "title");
gui->getSize(); // == (800, 600) !!!


PS: [Off-topic] Nice work on the ComboBox widget, I tested and it works great.

4
Help requests / Re: Tab widget
« on: 02 August 2013, 13:21:27 »
Ok, that's right, thanks for your answer.

5
Help requests / Re: Tab widget
« on: 02 August 2013, 12:49:36 »
Ok, thanks, now I see. (You should put your example in a small tutorial. It may help some users.)

The Tab widget on itself only displayes those tabs, you will also need panels for what you want.
Is it something that you wanted, or have you any plan to change that in the future?

6
Help requests / Tab widget
« on: 02 August 2013, 09:12:18 »
Hello,

I don't understand how Tabs are working. How can I add sub-widgets to each tab? Do you have an example please?
Fullexample only use empty Tab...

Thanks

7
Website / Re: Minor problems with tutorial.
« on: 02 August 2013, 08:34:49 »
In the new callback system tutorial, you should also replace boost::bind.

8
netrick: I have personally no problem if I need to install a patch, but texus is right: a lib should avoid depend of such things.
to_string and sto* functions are not very importants (and custom functions can easily do the same).
texus: ok. Thanks for your answer.

9
Hello,

I just tried to build the last version of TGUI, but...
Code: [Select]
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp: In function 'sf::Color tgui::extractColor(std::string)':
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:60:27: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:68:33: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:76:36: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:80:37: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:85:36: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp: In function 'std::string tgui::convertColorToString(const sf::Color&)':
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:108:26: error: 'to_string' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:109:26: error: 'to_string' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:110:26: error: 'to_string' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:111:26: error: 'to_string' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:114:26: error: 'to_string' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:115:26: error: 'to_string' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:116:26: error: 'to_string' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp: In function 'bool tgui::extractVector2f(std::string, tgui::Vector2f&)':
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:139:32: error: 'stof' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:143:32: error: 'stof' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp: In function 'bool tgui::extractVector2u(std::string, tgui::Vector2u&)':
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:173:58: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:177:58: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp: In function 'bool tgui::extractVector4u(std::string, tgui::Vector4u&)':
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:207:33: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:215:37: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:223:41: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:227:41: error: 'stoi' is not a member of 'std'
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp: In function 'std::string tgui::convertColorToString(const sf::Color&)':
C:\Users\gupas\Desktop\TGUI\src\TGUI\TGUI.cpp:118:5: warning: control reaches end of non-void function [-Wreturn-type]

But I don't know what is wrong...
(I used CodeBlocks/Mingw)
Should I use SFML compiled with c++11 now? It is strange, but until your last commit it worked great with "only" the -std=c++0x option enabled.

10
Help requests / Re: Creating new Widgets by inheritance
« on: 30 July 2013, 15:48:06 »
Now, it's done!  ;)
But yes, it was a bit long...

11
I'm agree with wizzard to say that it is a more common way to return true when the event was handled and false when it was not consumed.

12
Help requests / Re: Creating new Widgets by inheritance
« on: 29 July 2013, 20:27:57 »
I will have a look on the setSize function in the next days.

13
Feature requests / Re: MenuBar (small) improvement
« on: 29 July 2013, 14:34:13 »
I'm now going to take a look at Grid, that will be a bit more challenging.
So good luck ;)

Also, I just have done a pull request on github, fixing a documentation issue. You can have a look.

14
Feature requests / Re: MenuBar (small) improvement
« on: 29 July 2013, 11:39:27 »
Happy to see that it was already planned.

I know that it is a new Widget and I think that some proposal should help to improve it.

15
Feature requests / MenuBar (small) improvement
« on: 29 July 2013, 11:07:04 »
Hello,

It would be great if menus of the MenuBar were opened/closed with a mouse clic (not only with pointing on them).

That's all. ;)

Pages: [1] 2