arkdemon
29-03-2014 09:14:56
Hello everyone. I am new to the forum and to MyGUI. I know how to create delegates for widgets we create in our code but I do not know how to create delegates for the widgets created from a layout file. Can someone tell me how we can do that?
Thank you for your help.
PS:
I want to do this:
but for the widgets inside a layout file.
Currently I can only do that:
Thanks for your help!
Thank you for your help.
PS:
I want to do this:
exit->eventMouseButtonClick = MyGUI::newDelegate(quit);
but for the widgets inside a layout file.
Currently I can only do that:
MyGUI::Button* exit = mGUI->createWidget<MyGUI::Button>("Button", 0, 25, 100, 26, MyGUI::Align::Center, "Main");
exit->setCaption("Exit");
exit->eventMouseButtonClick = MyGUI::newDelegate(quit);
Thanks for your help!