U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » overwritten virtual void LeftDown - how to invoke WhenAction?
Re: overwritten virtual void LeftDown - how to invoke WhenAction? [message #36707 is a reply to message #36706] Wed, 27 June 2012 20:52 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Wolfgang

Wolfgang wrote on Wed, 27 June 2012 20:20

EDIT: Is it that easy, just call
this->WhenAction();
at the bottom of the LeftDown method?

Yes, it is that easy with U++ Smile You don't even have to write the "this->". WhenAction is just a Callback - a stored reference to function. You can call it just like the original function. In case no function has been assigned to the callback, it will simply do nothing.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Previous Topic: mousepos / click for a widget...
Next Topic: Open TheIDE in "Restore Down" rather than full screen
Goto Forum:
  


Current Time: Sun Oct 04 20:55:29 GMT+2 2026

Total time taken to generate the page: 0.29108 seconds