GuiBitmapButtonCtrl Mouse Events
by Scott Barlow · in iTorque 2D · 09/02/2009 (5:53 am) · 2 replies
I am trying to build a GUI that contains several GuiBitmapButtonCtrl objects. I see the property, "usemouseevents" and have it checked for my GuiBitmapButtonCtrl buttons. I'm using iTGB 1.2 and have named my GuiBitmapButtonCtrl buttons. However, they do not appear to respond to my custom mouse events.
The following is an example of my event code:
function restartMenu::onMouseDown(%this)
{
resetLevel ();
}
Very simple, but it never gets called. Interestingly, when I mouse over a GuiBitmapButtonCtrl, click it, etc. all the built-in events are getting fired and the images are changing. But my code never gets invoked. Any ideas?
The following is an example of my event code:
function restartMenu::onMouseDown(%this)
{
resetLevel ();
}
Very simple, but it never gets called. Interestingly, when I mouse over a GuiBitmapButtonCtrl, click it, etc. all the built-in events are getting fired and the images are changing. But my code never gets invoked. Any ideas?
About the author
Torque Owner Eyal Erez
Although the rest of the mouse Events should work.