siondream
30-06-2011 10:33:19
Hello, I'm using MyGUI 3.2 RC1 and I want to play a little sound effect when the mouse enters a button (like an over event). The problem is that I don't know what event in MyGUI I should use. First I thought it was:
But that threw a compilation error. Could you help me please?
Thanks a lot!
Edit:
Okey, it's like this:
_btnPlay->eventMouseSetFocus += MyGUI::newDelegate(this, &StateMenu::btnOver);
But that threw a compilation error. Could you help me please?
Thanks a lot!
Edit:
Okey, it's like this:
_btnPlay->setNeedMouseFocus(true);
_btnPlay->eventMouseSetFocus += MyGUI::newDelegate(this, &StateMenu::notifyMouseSetFocus);
void StateMenu::notifyMouseSetFocus(MyGUI::Widget* _sender, MyGUI::Widget* _old)
{
// something
}