Index: CtrlLib/CtrlUtil.cpp =================================================================== --- CtrlLib/CtrlUtil.cpp (wersja 15148) +++ CtrlLib/CtrlUtil.cpp (kopia robocza) @@ -382,7 +382,7 @@ { button.NoWantFocus(); button.SetImage(CtrlImg::right_arrow()); - button <<= THISBACK(OnAction); + button << [=] { OnAction(); }; } void FileSelButton::OnAction() Index: CtrlLib/CtrlUtil.h =================================================================== --- CtrlLib/CtrlUtil.h (wersja 15148) +++ CtrlLib/CtrlUtil.h (kopia robocza) @@ -501,10 +501,9 @@ class FileSelButton : public FileSel { public: - typedef FileSelButton CLASSNAME; enum MODE { MODE_OPEN, MODE_SAVE, MODE_DIR }; FileSelButton(MODE mode = MODE_OPEN, const char *title = NULL); - + void Attach(Ctrl& parent) { parent.AddFrame(button); } void Detach(); void Title(String t) { title = t; } @@ -511,7 +510,9 @@ String GetTitle() const { return title; } Event<> WhenSelected; - + + FileSelButton& Tip(const char *txt) { button.Tip(txt); return *this; } + private: void OnAction();