Home » Community » Newbie corner » THISBACK, is there a THATBACK?
Re: THISBACK, is there a THATBACK? [message #47787 is a reply to message #47786] |
Sun, 26 March 2017 11:10   |
Zbych
Messages: 327 Registered: July 2009
|
Senior Member |
|
|
ptkacz wrote on Sun, 26 March 2017 06:50how does one specify something like:?
myPanel.someBtn << THISBACK(canvas.doThis);
Peter
Take a look at source code of THISBACK:
#define THISBACK(x) callback(this, &CLASSNAME::x)
You just need pointer to an object and method:
myPanel.someBtn << callback(&canvas, &Canvas::doThis);
[Updated on: Sun, 26 March 2017 11:11] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Jun 26 04:44:06 CEST 2025
Total time taken to generate the page: 0.05579 seconds
|