How works MemberFunctionPointer and MemberFunctionSlot?

Artic_Ice83

09-12-2007 15:33:03

Hi everyone!
i was playing with addEventHandler for trackbar and i saw in the declaration of the event handler that accept as argument a MemberFunctionSlot...but what is? how can i use it for my event handler?

kungfoomasta

09-12-2007 22:47:50

Those classes enable you to create your own event handlers. View the demo for code on this, I'm short on time at the moment.

myWidget->addEventHandler(EVENT_MOUSE_BUTTON_DOWN,&myClass::myFunction,this);

void myClass::myFunction(const EventArgs& args);

Artic_Ice83

10-12-2007 09:46:40

ahhh.thanks, now i have understood!! :)