BetoValle Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
Experienced Member
i build function to remove in the class
class HWld : public WithmeuL<TopWindow> {
private:
void fxRemove();
int keyId;
public:
typedef HWld CLASSNAME;
.......................
void HWld::fxRemove(){
int i = grid.GetCursor();
String s;
s << i;
PromptOK( s );
grid.Remove( i );
}
....................... below in constructor compilation error occurs
main.cpp (86): error: 'this' cannot be implicitly captured in this context
BetoValle Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
Experienced Member
i found a solution that worked, replacing the lambda function
and it was like this:
keyId = Ctrl :: RegisterSystemHotKey (K_CTRL_DELETE, THISBACK (fxRemove));
but I haven't figured out how to do it using WhenAction.