Subscribing an event to a static image
Posted: Wed Mar 16, 2005 23:14
I am having trouble with this and I can't figure out what is wrong. I have an image that i want to use as a button but for some reason, my event function is not being called. Here is my event subscribe code:
I set up an Event::Connection variable to check and make sure the event was being registered and it was. There are no errors in the log file. I don't know what else to try.
By the way...CEGUI is awesome.
tawraven
Code: Select all
wmgr.getWindow((CEGUI::utf8*)"ImageOptions")
->subscribeEvent(
CEGUI::StaticImage::EventMouseClick,
CEGUI::Event::Subscriber(&GuiApplication::handleShowOptions, this));
I set up an Event::Connection variable to check and make sure the event was being registered and it was. There are no errors in the log file. I don't know what else to try.
By the way...CEGUI is awesome.
tawraven