Could you post some minimal code that does what you describe so that I can easily test it here?
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 MenuQuoteand then maybe should I pull the TGUI github and make a pull request ?That would probably be the easiest way for me, yes.
QuoteIf you're interested in theses classes, I can implement more features, like weight for each element, borders, fixed size widget and space elements.I'm definitely interested in such classes.
QuoteEdit: I know that the copy constructor/assignement operator sounds bad, because widgets are copied, removed and copied again, but that's the only way I seen to don't have to write a addWidget method like you did with Grid.I think it can be done easier if I make a small change in the Container class. The reason you have to write the copy constructor and assignement operator is because the ones in Container just copy their own variables. If instead I make it call the add function for all its widgets then your code should work without needing to implement these functions yourself.
grid->add(label); // add the label to the grid like you add it to any other parent
grid->addWidget(label, i, j); // put the label in the correct cell in the grid
QuoteI just copy-pasted parts of you example codesAh, I didn't knew it contained that code. I forgot to update it apparently after I allowed the bind function to take the Gui as parameter directly.
Quoteit asks for debug DLLsThen just copy the dlls (which can be found in the lib folder inside the build folder that you created for cmake) next to the executable you are running (like you should have done for the release dlls already). You really need to run in debug mode to get most information.
QuoteI cannot get it again when I run my program with gdb, but when I run the program normally I get it.Are you running it from the command prompt in both cases and in the same folder?
QuoteBy the way, how can I help you to improve TGUI?For short term stuff I created a page on Trello. You could have a look at the tasks in the "Minor changes" section.
Quotethat's the only relevant information that the call stack givesCall stacks on destructors indeed usually provide no relevant information, but if even one of these lines is about a tgui function then it might help. Are you linking in debug mode?
panel1->get("modelName");gui.get("modelName", true);
GuiContainer::Ptr m_container = std::shared_ptr<GuiContainer>(new GuiContainer());NormalImage_L = "Black.png" ( 0, 25, 50, 50)
NormalImage_M = "Black.png" ( 50, 25, 100, 50)
NormalImage_R = "Black.png" (150, 25, 50, 50)NormalImage = "Black.png" ( 0, 200, 50, 50)Quoteit defaults to a rather large sizeI'm not sure if you mean the button itself or the text on top of it.
Quoteseems to be unavailable in .conf files altogetherThe idea of config files is that they determine the theme, the way widgets look. So classes like AnimatedPicture do not load from it, since they have no "theme", it is just several frames op pictures. So you can only add those frames from code.