Hello,
I have a button that will open a childwindow, but i want only one instance of chilwindow even if i click several time on the button.
Here the code :
What should i do if i want to check if childwindows is already open?
I have a button that will open a childwindow, but i want only one instance of chilwindow even if i click several time on the button.
Here the code :
Code Select
void cVanne::afficherWidget(tgui::Gui &gui)
{
widget.fenêtre = tgui::ChildWindow::Ptr(gui, "fenetre");
widget.fenêtre->load(THEME_CONFIG_FILE);
widget.fenêtre->setSize(100, 100);
widget.fenêtre->setBackgroundColor(sf::Color(80, 80, 80, 125));
widget.fenêtre->setPosition(sprite.posX, sprite.posY+sprite.tailleY);
widget.fenêtre->setTransparency(125);
widget.fenêtre->setBorders(2,2,2,2);
widget.fenêtre->setCallbackId(1);
}
What should i do if i want to check if childwindows is already open?