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: 326 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: Tue May 14 09:42:43 CEST 2024
Total time taken to generate the page: 0.02807 seconds
|