QuoteTexus you should use : https://lmgtfy.com/?q=vector%3A%3Apush_back lolI prefer this one

With that last '!cpp' you even get to cplusplus.com immediately.
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 MenuQuoteTexus you should use : https://lmgtfy.com/?q=vector%3A%3Apush_back lolI prefer this one

QuoteNow i have to deal with "Why program takes 34-40% CPU when i click to open Group1, and it was using 4% when on main screen and loginScreen.Does your code sleep anywhere?
QuoteI can upload entire project if you want toNot needed. I won't spend my time looking at someone elses code unless I have a reason for it.
tgui::Panel::Ptr Group1 = gui.get("Group1");
tgui::Panel::Ptr Group1Napomene = gui.get("Group1Napomene");
for (unsigned i = 0; i < 30; ++i)
{
tgui::EditBox::Ptr Ime1 = Group1->get("Ime" + tgui::to_string(i));
sf::String text = Ime1->getText();
tgui::EditBox::Ptr Ime1napomene = Group1Napomene->get("Ime" + tgui::to_string(i));
Ime1napomene->setText(text);
}
Quotehm seems I'm uing the 2010 command prompt, cant find the 2012That's what causing the problems.
QuoteI'm using Visual studio 2012 express
QuoteI'm using this one in VC++ 2013Which one is it? If it is not 2012 then I would recommend rebuilding sfml as well.
Quotemismatch detected for '_MSC_VER': value '1600' doesn't match value '1700'This apparently means that you are using a library that was compiled for VS2010 in a VS2012 project.
QuoteSFML is the release candidate that doesnt require any building.What do you mean release candidate? If you just downloaded sfml then you have 2.0, or if you dowloaded from github then you have a newer version but then you would have to build it yourself. If you are really talking about the SFML2-RC from last year, then I must say that tgui isn't compatible with that version (but you don't seem to get errors when building tgui so that can't be the case).
for (unsigned int i = 0; i < 30; ++i)
{
tgui::EditBox::Ptr editBox(*Group1);
editBox->load("TGUI/widgets/Black.conf", "Ime" + tgui::to_string(i+1));
// ...
EditBoxNames.push_back(editBox);
}QuoteI get error no match for 'operator=' in 'Group1Names.std::vector<_Tp, _Alloc>::operator[] [with _Tp = tgui::SharedWidgetPtr<tgui::EditBox>, _Alloc = std::allocator<tgui::SharedWidgetPtr<tgui::EditBox> >, std::vector<_Tp, _Alloc>::reference = tgui::SharedWidgetPtr<tgui::EditBox>&, std::vector<_Tp, _Alloc>::size_type = unsigned int](i) = tgui::EditBox::getText() const()'|It seems to be an error in the line below.
Group1Names[i] = EditBoxNames[i]->getText();Group1Names[i]->setText(EditBoxNames[i]->getText());
Name[i] = "blablabla";
Group1Ime[i] = "someString";EditBoxNames[i] = Group1->get("Ime" + "to_string(i)"); // error here becouse of "", even with Ime[i]EditBoxNames[i] = Group1->get("Ime" + to_string(i));std::cout << callback.widget->getParent()->get("Group1").get() << std::endl;tgui::Panel::Ptr Group1 = callback.widget->getParent()->get("Group1");tgui::Panel* Group1 = callback.widget->getParent();tgui::Scrollbar::Ptr scrollbar(*Group1, "Scrollbar");std::cout << Group1.get() << std::endl;std::cout << callback.widget << std::endl;
std::cout << callback.widget->getParent() << std::endl;
std::cout << callback.widget->getParent()->get("Group1") << std::endl;std::cout << widgets[i].get() << std::endl;