The download on my site is the right version, but if "tgui::Form form(&window);" compiles then you are still using the header files and library of an older version.
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 MenuQuoteHow would I draw the form?It has a draw method (instead of the drawGUI method from tgui::Window).
tgui::Combobox::Ptr comboPtr = gui.get("A Combo Box");
comboPtr->addItem("test");gui.get("A Combo Box")->addItem("test");tgui::ComboBox::Ptr(gui.get("A Combo Box"))->addItem("test");
QuoteI was struggling with casting the returned Widget::Ptr into specific types.Any function declared on tgui::Widget can be called no matter the real type of the widget. You only need to upcast when you need specific functions like setText.
QuoteBinding of the built in "callback triggers" would be a welcome future addition, though.I will add it to the todo list. I'll see when I have enough time to add something like this.
auto widgets = gui.getWidgets(); // replace gui with the container that contains the loaded widgets
for (auto& widget : widgets) {
if (widget->getWidgetType() == tgui::Type_Button)
widget->bindCallback(tgui::Button::LeftMouseClicked);
// else if (widget->getWidgetType() == tgui::Type_xxx)
// widget->bindCallback(tgui::xxx::yyy);
}QuoteI realized I could just call "loadWidgetsFromFile" from the container I want to populate, instead of from the instance of GUI.I already forgot that I once added this possibility.
QuoteIt still appears in the 0.6 documentation.It seems like the online docs haven't been updated yet. Will be fixed in a few minutes. Thanks for letting me know.
Button: ""
{
// ...
}ChildWindow: ""
{
ConfigFile = "Black.conf"
Size = (800, 600)
Button: ""
{
// ...
}
}Quotelibcmtd.lib(crt0dat.obj) : error LNK2005: xxx already defined in MSVCRTD.lib
Quote from: texusLoading from memory is just not possible with the current design. The whole texture managment is build on top of the fact that images are loaded from files. So I would have to find a new design for the texture managment and I would have to change the config files to support this. I'm not even sure if I will be able to add this to the next version.
Quotewas able to get the library up effortlessly simply by recompiling the source.Did you have to do anything special for the Tao.OpenGL, or was it enought to include the sfml libraries?