It's working!
Thank you very much and sorry for my stupid questions and my bad english
QuoteThe compiler has to know which function (which is what you pass in your codes), but it also should know on which object it should call this function. So the correct line becomes:It' logical.
QuoteActually that line is just shorthand for the following code:Thank to you I understand what std::bind is for!Code SelectmyButton->bindCallbackEx(std::bind(&MyClass::CallbackFunction, &myClassInstance), tgui::Button::LeftMouseClicked);
Thank you very much and sorry for my stupid questions and my bad english
