Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 326
Registered: July 2009
Senior Member
ptkacz wrote on Sun, 26 March 2017 06:50
how 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

 
Read Message
Read Message
Read Message
Previous Topic: Link error:
Next Topic: Where i can start learning u++?
Goto Forum:
  


Current Time: Tue May 14 09:42:43 CEST 2024

Total time taken to generate the page: 0.02807 seconds