Menu

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.

Show posts Menu

Messages - Heinrich

#26
Help requests / Re: Switching to 0.7
09 October 2014, 12:49:46
Quote from: texus on 09 October 2014, 08:21:52
But right now you still need both the add and addWidget function.
I don't think I changed the bahavior so you should have a look at the v0.6 tutorial for Grid.

grid->add(button0); // Add the widget to the (grid) container
grid->addWidget(button0, 0, 0); // Place the widget in a cell



Oh dog, I totally forgot about this, the GUI code in my application has been untouched for over a year.
What about buttons in a grid not displaying their text? Can you reproduce this/know what silly mistakes I'm making?
Wait, wait. Right, I need to add&addWidget. Works alright now. If you do not plan major API refinements for the grid, I think simply having addWidget(Widget) call this.add((Widget) internally would enough to make it easier to use. I can picture many confused users with the same erroneous assumption.
#27
Help requests / Re: Switching to 0.7
09 October 2014, 00:27:30
Okay, that's interesting. I used grid->add(button) instead of grid->addWidget(button). What does add() do?
Now, the button shows, but it doesn't display it's text (and doesn't react to hovering or clicking). Code is:


tgui::Gui gui(*mWin);
gui.setGlobalFont(Settings::getDataFolderBasePath()+"font/FixedSysEx.ttf");
tgui::Grid::Ptr grid = tgui::Grid::create();// (gui);   
grid->setSize(400, 400);
grid->setPosition(10,10);
std::string test = Settings::getDataFolderBasePath() + "gui/widgets/Black.conf";
tgui::Button::Ptr button0 = tgui::Button::create(test);
button0->setSize(200,100);
button0->setText("Host");
button0->setTextSize(16);
grid->addWidget(button0,0,0);
gui.add(grid);


The button displays it's text correctly only when it is added directly to the GUI.

To clarify: if I do gui.add(button0) it works without any changes. So it is not that the font is not set or something.

On a sidenote, I use the grid widget for layouting, centering multiple widgets that is. Can I achieve this via bind methods also? I haven't looked into them yet.
#28
Help requests / Re: Switching to 0.7
08 October 2014, 19:21:42
I'm trying to port to 0.7dev. Does the Grid Widget workyet? It doesn't display anything that's added to it. Giving it borders and calling show() on it also does nothing.
#29
Installation help / Re: 0.7dev Compilation error
07 October 2014, 00:37:12
Great job. I can confirm both release and debug configurations work now.

#30
Installation help / Re: 0.7dev Compilation error
07 October 2014, 00:02:10
Well, at least I have a dropbox-account now..  ;) In fact I had it earlier but it went unused for a very long time and now I have the credentials again.
#31
Installation help / Re: 0.7dev Compilation error
06 October 2014, 23:44:51
Just did that. (deleted the whole folder, downloaded anew, reran cmake, compiled tgui). Still, it is 110KB. What could I be doing wrong? I also tried the release configuration. Same result.
#32
Installation help / Re: 0.7dev Compilation error
06 October 2014, 22:34:05
Quickly tested it, library compiles fine. Compiling fullexample.cpp with the library throws unresolved externals at me however. I did link against tgui-d.lib correctly. On a sidenote, tgui-d.lib is much smaller (110kb) than the previous version (372kb), this stems from your code revisions, right? Maybe the error is on my side, it is late.

1>------ Build started: Project: tguitest, Configuration: Debug Win32 ------
1>  FullExample.cpp
1>FullExample.cpp(24): warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data
1>FullExample.cpp(200): warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data
1>FullExample.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl tgui::toLower(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?toLower@tgui@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@@Z) referenced in function "protected: void __thiscall tgui::SignalWidgetBase::connectInternal<class <lambda_ac1a379fafdc65c61d25b71a944ca7ca> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class <lambda_ac1a379fafdc65c61d25b71a944ca7ca>)" (??$connectInternal@V<lambda_ac1a379fafdc65c61d25b71a944ca7ca>@@$$$V@SignalWidgetBase@tgui@@IAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V<lambda_ac1a379fafdc65c61d25b71a944ca7ca>@@@Z)
1>FullExample.obj : error LNK2019: unresolved external symbol "protected: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __thiscall tgui::SignalWidgetBase::extractSignalNames(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?extractSignalNames@SignalWidgetBase@tgui@@IAE?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z) referenced in function "public: unsigned int __thiscall tgui::SignalWidgetBase::connect<class <lambda_ac1a379fafdc65c61d25b71a944ca7ca> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class <lambda_ac1a379fafdc65c61d25b71a944ca7ca>)" (??$connect@V<lambda_ac1a379fafdc65c61d25b71a944ca7ca>@@$$$V@SignalWidgetBase@tgui@@QAEIABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V<lambda_ac1a379fafdc65c61d25b71a944ca7ca>@@@Z)
1>FullExample.obj : error LNK2019: unresolved external symbol "public: __thiscall tgui::Layout1d::Layout1d(class tgui::Layout1d const &)" (??0Layout1d@tgui@@QAE@ABV01@@Z) referenced in function "public: __thiscall tgui::Layout::Layout(class tgui::Layout1d const &,class tgui::Layout1d const &)" (??0Layout@tgui@@QAE@ABVLayout1d@1@0@Z)
1>FullExample.obj : error LNK2019: unresolved external symbol "public: __thiscall tgui::Layout::~Layout(void)" (??1Layout@tgui@@QAE@XZ) referenced in function "public: void __thiscall tgui::Transformable::setPosition(class tgui::Layout1d const &,class tgui::Layout1d const &)" (?setPosition@Transformable@tgui@@QAEXABVLayout1d@2@0@Z)
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Label> __cdecl tgui::Label::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@Label@tgui@@SA?AV?$shared_ptr@VLabel@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Label::setText(class sf::String const &)" (?setText@Label@tgui@@QAEXABVString@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Label::setTextSize(unsigned int)" (?setTextSize@Label@tgui@@QAEXI@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Picture> __cdecl tgui::Picture::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?create@Picture@tgui@@SA?AV?$shared_ptr@VPicture@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@_N@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Button> __cdecl tgui::Button::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@Button@tgui@@SA?AV?$shared_ptr@VButton@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Button::setText(class sf::String const &)" (?setText@Button@tgui@@QAEXABVString@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::RadioButton> __cdecl tgui::RadioButton::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@RadioButton@tgui@@SA?AV?$shared_ptr@VRadioButton@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::RadioButton::setText(class sf::String const &)" (?setText@RadioButton@tgui@@QAEXABVString@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Checkbox> __cdecl tgui::Checkbox::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@Checkbox@tgui@@SA?AV?$shared_ptr@VCheckbox@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::EditBox> __cdecl tgui::EditBox::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@EditBox@tgui@@SA?AV?$shared_ptr@VEditBox@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::EditBox::setTextSize(unsigned int)" (?setTextSize@EditBox@tgui@@QAEXI@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Slider> __cdecl tgui::Slider::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@Slider@tgui@@SA?AV?$shared_ptr@VSlider@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Scrollbar> __cdecl tgui::Scrollbar::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@Scrollbar@tgui@@SA?AV?$shared_ptr@VScrollbar@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Scrollbar::setMaximum(unsigned int)" (?setMaximum@Scrollbar@tgui@@QAEXI@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Scrollbar::setLowValue(unsigned int)" (?setLowValue@Scrollbar@tgui@@QAEXI@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::ProgressBar> __cdecl tgui::ProgressBar::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@ProgressBar@tgui@@SA?AV?$shared_ptr@VProgressBar@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::ProgressBar::setValue(unsigned int)" (?setValue@ProgressBar@tgui@@QAEXI@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Tab> __cdecl tgui::Tab::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@Tab@tgui@@SA?AV?$shared_ptr@VTab@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall tgui::Tab::add(class sf::String const &,bool)" (?add@Tab@tgui@@QAEIABVString@sf@@_N@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Tab::setTabHeight(float)" (?setTabHeight@Tab@tgui@@QAEXM@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::MenuBar> __cdecl tgui::MenuBar::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@MenuBar@tgui@@SA?AV?$shared_ptr@VMenuBar@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::MenuBar::addMenu(class sf::String const &)" (?addMenu@MenuBar@tgui@@QAEXABVString@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: bool __thiscall tgui::MenuBar::addMenuItem(class sf::String const &,class sf::String const &)" (?addMenuItem@MenuBar@tgui@@QAE_NABVString@sf@@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::ChatBox> __cdecl tgui::ChatBox::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@ChatBox@tgui@@SA?AV?$shared_ptr@VChatBox@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::ChatBox::addLine(class sf::String const &,class sf::Color const &)" (?addLine@ChatBox@tgui@@QAEXABVString@sf@@ABVColor@4@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::ChatBox::setTextSize(unsigned int)" (?setTextSize@ChatBox@tgui@@QAEXI@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::Canvas> __cdecl tgui::Canvas::create(class sf::Vector2<float> const &)" (?create@Canvas@tgui@@SA?AV?$shared_ptr@VCanvas@tgui@@@std@@ABV?$Vector2@M@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Canvas::clear(class sf::Color const &)" (?clear@Canvas@tgui@@QAEXABVColor@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Canvas::draw(class sf::Drawable const &,class sf::RenderStates const &)" (?draw@Canvas@tgui@@QAEXABVDrawable@sf@@ABVRenderStates@4@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Canvas::display(void)" (?display@Canvas@tgui@@QAEXXZ) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: static class std::shared_ptr<class tgui::ChildWindow> __cdecl tgui::ChildWindow::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?create@ChildWindow@tgui@@SA?AV?$shared_ptr@VChildWindow@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@0@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::ChildWindow::setTitle(class sf::String const &)" (?setTitle@ChildWindow@tgui@@QAEXABVString@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: __thiscall tgui::Gui::Gui(class sf::RenderWindow &)" (??0Gui@tgui@@QAE@AAVRenderWindow@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: bool __thiscall tgui::Gui::handleEvent(class sf::Event)" (?handleEvent@Gui@tgui@@QAE_NVEvent@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Gui::draw(void)" (?draw@Gui@tgui@@QAEXXZ) referenced in function _main
1>FullExample.obj : error LNK2019: unresolved external symbol "public: void __thiscall tgui::Gui::add(class std::shared_ptr<class tgui::Widget> const &,class sf::String const &)" (?add@Gui@tgui@@QAEXABV?$shared_ptr@VWidget@tgui@@@std@@ABVString@sf@@@Z) referenced in function _main
1>FullExample.obj : error LNK2001: unresolved external symbol "protected: static unsigned int tgui::SignalWidgetBase::m_lastId" (?m_lastId@SignalWidgetBase@tgui@@1IA)
1>C:\Users\User\Documents\RKN\ext\tgui\TGUI-0.7-dev\examples\full_example\Debug\tguitest.exe : fatal error LNK1120: 41 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#33
Installation help / Re: 0.7dev Compilation error
06 October 2014, 17:19:38
I saw ther was an update for VS last month. After installation the error vanishes. However:

2>Layout.cpp(145): error C2797: 'tgui::Layout1d::m_bindings': list initialization inside member initializer list or non-static data member initializer is not implemented


I guess you are to cutting edge for MSVC2013 Update 3
#34
Installation help / Re: 0.7dev Compilation error
06 October 2014, 17:03:48
Sounds great, thank you.
#35
Installation help / 0.7dev Compilation error
06 October 2014, 16:30:32
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>------ Build started: Project: tgui, Configuration: Debug Win32 ------
2>  Button.cpp
2>  Canvas.cpp
2>  ChatBox.cpp
2>ChatBox.cpp(586): warning C4244: 'return' : conversion from 'double' to 'float', possible loss of data
2>  Checkbox.cpp
2>  ComboBox.cpp
2>  Container.cpp
2>C:\Users\User\Documents\RKN\ext\tgui\TGUI-0.7-dev\include\TGUI/TextBox.hpp(412): error C2664: 'std::vector<sf::String,std::allocator<_Ty>>::vector(std::initializer_list<sf::String>,const std::allocator<_Ty> &)' : cannot convert argument 1 from 'const char [1]' to 'const std::allocator<_Ty> &'
2>          with
2>          [
2>              _Ty=sf::String
2>          ]
2>          Reason: cannot convert from 'const char [1]' to 'const std::allocator<_Ty>'
2>          with
2>          [
2>              _Ty=sf::String
2>          ]
2>          No constructor could take the source type, or constructor overload resolution was ambiguous
2>C:\Users\User\Documents\RKN\ext\tgui\TGUI-0.7-dev\include\TGUI/Gui.hpp(469): error C2783: 'std::shared_ptr<_Ty> std::make_shared(_Types &&...)' : could not deduce template argument for '_Ty'
2>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\memory(1000) : see declaration of 'std::make_shared'
2>  EditBox.cpp
2>  Gui.cpp
2>C:\Users\User\Documents\RKN\ext\tgui\TGUI-0.7-dev\include\TGUI/Gui.hpp(469): error C2783: 'std::shared_ptr<_Ty> std::make_shared(_Types &&...)' : could not deduce template argument for '_Ty'
2>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\memory(1000) : see declaration of 'std::make_shared'
2>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\memory(1000) : see declaration of 'std::make_shared'
2>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\memory(1000) : see declaration of 'std::make_shared'
2>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\memory(1000) : see declaration of 'std::make_shared'
2>  Knob.cpp
2>  Layout.cpp
2>C:\Users\User\Documents\RKN\ext\tgui\TGUI-0.7-dev\include\TGUI/Gui.hpp(469): error C2783: 'std::shared_ptr<_Ty> std::make_shared(_Types &&...)' : could not deduce template argument for '_Ty'
2>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\memory(1000) : see declaration of 'std::make_shared'
2>  Picture.cpp
2>  ProgressBar.cpp
2>  RadioButton.cpp
2>  Scrollbar.cpp
2>Scrollbar.cpp(673): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
2>Scrollbar.cpp(675): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
2>Scrollbar.cpp(677): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
2>Scrollbar.cpp(679): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
2>  Signal.cpp
2>  Slider.cpp
2>Slider.cpp(204): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
2>Slider.cpp(209): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
2>  TextBox.cpp
2>C:\Users\User\Documents\RKN\ext\tgui\TGUI-0.7-dev\include\TGUI/TextBox.hpp(412): error C2664: 'std::vector<sf::String,std::allocator<_Ty>>::vector(std::initializer_list<sf::String>,const std::allocator<_Ty> &)' : cannot convert argument 1 from 'const char [1]' to 'const std::allocator<_Ty> &'
2>          with
2>          [
2>              _Ty=sf::String
2>          ]
2>          Reason: cannot convert from 'const char [1]' to 'const std::allocator<_Ty>'
2>          with
2>          [
2>              _Ty=sf::String
2>          ]
2>          No constructor could take the source type, or constructor overload resolution was ambiguous
2>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\algorithm(4141): warning C4244: 'argument' : conversion from 'float' to 'const unsigned int', possible loss of data
2>TextBox.cpp(342): warning C4244: 'argument' : conversion from 'float' to 'const unsigned int', possible loss of data
2>TextBox.cpp(420): warning C4244: '=' : conversion from 'float' to 'unsigned int', possible loss of data
2>  TextureManager.cpp
2>  ThemeFileParser.cpp
2>  Tooltip.cpp
2>  Generating Code...
2>c:\users\user\documents\rkn\ext\tgui\tgui-0.7-dev\src\tgui\combobox.cpp(209): fatal error C1001: An internal error has occurred in the compiler.
2>  (compiler file 'f:\dd\vctools\compiler\utc\src\p2\ehexcept.c', line 956)
2>   To work around this problem, try simplifying or changing the program near the locations listed above.
2>  Please choose the Technical Support command on the Visual C++
2>   Help menu, or open the Technical Support help file for more information
3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>  Build all projects
4>------ Skipped Build: Project: INSTALL, Configuration: Debug Win32 ------
4>Project not selected to build for this solution configuration
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========


Unfortunately I am not a template guy, can you figure out what's wrong?
#36
Help requests / Re: Switching to 0.7
03 October 2014, 16:12:41
What would you assume is more work: Sticking to 0.6 now and rewriting when 0.7release comes out or rewriting for 0.7dev now and rewriting when 0.7release comes out?
#37
General Discussion / Re: TGUI rocks
03 October 2014, 03:39:39
Thank you for your thorough answer. In this case, I think I'll be an early adopter to 0.7dev next week.
#38
General Discussion / TGUI rocks
02 October 2014, 13:50:33
  :) :D ;D
Just came by to tell you that I really appreciate your work and cannot wait for 0.7 release. I read on your blog 0.7 has 9-slice-scaling. I'm really looking forward to this.
How will it work? I've had a quick look at the 0.7 Black.conf, don't I need to set the slices manually? Or are you doing some leftSlice.size.x = image.size.x/3? Never mind, I found Texture.cpp. 8)
#39
Help requests / Switching to 0.7
23 September 2014, 13:38:03
Hello,

I am (still) using v0.6 for a hobby project.  Would you recommend switching to 0.7 now or should I await later versions?
#40
Help requests / Re: LoadFromFile() & callbacks
31 August 2013, 17:21:42
Awesome. I forgot there was a form builder. Can't wait to check that out when you release it.
Maybe you should remove LoadFromFile() from 0.6  code examples meanwhile.
Also thank you for your swift replies.
#41
Help requests / LoadFromFile() & callbacks
31 August 2013, 15:43:46
I couldn't find out how to specify callbacks when loading from a file. Or how to otherwise get informed of events. Please assist.
#42
Feature requests / Re: focusPrevious()
31 August 2013, 05:41:05
Maybe also a possibility to disable mouse input to the gui? Currently, even when I set callbacks to ReturnKeyPressed only, I can still hover and focus with the mouse. Hovering is no big deal since I can change the image or set hover image off, but mouse focusing can really mess things up if you do keep track of focused stuff with pointers and change them according to KeyEvents.
I guess I could filter out mouse events before I relay them via gui.handleEvent(event). Again, it's convenience.
#43
Feature requests / Re: focusPrevious()
31 August 2013, 05:36:39
QuoteKeyboard navigation is basically impossible to do directly in a gui library.
When in the menu, you might want to use the up and down arrow keys to navigate, but in the game the arrow keys shouldn't influence the buttons you have on your screen. So a gui lib can never respond directly to arrow keys, you have to handle everything yourself because you know exactly when everything should happen.
I suppose so, I never meant it this way. I meant it more like
QuoteBut having focusPreviousWidget and focusNextWidget will make it easier to navigate with arrow keys (or game pad).
This function alone makes it possible to use a non-mouse device to easily select entries without doing housekeeping with pointers to buttons yourself. For extra convenience, you could do a focusTop(), focusDown(), focusLeft(), focusRight() in Grid, I am doing this by get(row,col)->focus() which is also not a big deal of course. I guess most of those functions wouldn't require refactoring at all, merely some additional getters/setters (But please correct me if I'm wrong). Is focusFirstChildWidget() possible? I only found parent in the API. Also maybe callbacks with arbitrary KeyEvents. I know my wishlist is long and especially the Key stuff probably involves much more tedious typing than actual coding.
#44
Feature requests / Re: focusPrevious()
29 August 2013, 19:25:50
By the way, I looked at some GUI frameworks in the past (namely sfgui), and I noticed nobody really does KeyBoard input. Which is strange, since I would have guessed that at least some people would make games that are supposed to be played with a gamepad. Especially all those "retro"-games.
Most of which, by the way I find quite alienating, for example because when I played them back then I'm quite fond to remember they tried everything to conceil pixelated fonts, not make them deliberately look blocky. I mean, why would you want a blocky font when clearly all sprites are in -and move at-  a much higher resolution. But I digress..
Well, anyway, being easily Keyboard-navigable (thus gamepad- or more generally mouseless-navigable) could be the distinct feature of your framework.
#45
Feature requests / Re: focusPrevious()
29 August 2013, 19:14:11
Hi texus,

Specifying the focus image in the .conf worked well, thank you for the clarification.
The bug issued ("Some Button::ButtonCallbacks not working") did not have anything to do with it, it is completely separate. I wanted to navigate the menu with the keyboard (which works fine now, I used setTextColor intermediately to hint at which button was focused, but now it works thanks to your help) and receive a callback when Return was pressed, which still doesn't. If I set the callback to "LeftMouseClicked" it works fine. I guess I can do a workaround by asking if sf::KeyBoard::isPressed(Return) and which button is currently focussed but I thought I would inform you, because unlike my previous ticket this looks like a genuine bug.
#46
Feature requests / Re: focusPrevious()
29 August 2013, 17:56:56
Well, I am confused. What is the focusedImage? From what I can see it is neither defined in Black nor BabyBlue. Is there even such a thing? There seems to be no change in appearance at all whether a Button is focused or not.
#47
Feature requests / Re: focusPrevious()
29 August 2013, 17:47:34
"SeparateHoverImage = false" in Black.conf

Oh, I see. ::)
#48
Feature requests / Re: focusPrevious()
29 August 2013, 17:42:42
QuoteThe focus image is drawn on top of the normal and hover ones, so if your focus image isn't transparent then you won't see the hover image.
That is good to know.

QuoteOr are u using the Black style?
I do.
#49
Feature requests / Re: focusPrevious()
29 August 2013, 17:03:13
I just tested navigation with keyboard and noticed that the hover image does not get used when a widget is focused. How can I manually set a widget as "being hovered on"?
#50
Feature requests / Re: focusPrevious()
29 August 2013, 16:39:11
What would happen if there is no next or previous widget?I think the first widget in the same hierarchy level should be called.

From the class hierarchy I infer that if you put it in Container, you would no longer be able to do the following (since I noticed tgui::Gui does not inherit from Container, as I would have expected):

button0(gui)
button1(gui)

if(LeftKey) gui.focusPrevious();
else if(RightKey)gui.focusNext();

So Containers would be mandatory from then on. I suppose adding widgets directly to gui is only for quick demonstration anyway.