Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Xerum

#1
Help requests / Re: Help with Callbacks
09 November 2016, 13:55:00
Thank you for the help!
#2
Help requests / Help with Callbacks
09 November 2016, 00:53:17
I'm sure this may seem like a relatively "dumb" or easy to answer question, but I'm having the hardest time understanding the documentation on callbacks for .07. For example your menu example of .06 is:
tgui::MenuBar::Ptr menu(gui);
    menu->load(THEME_CONFIG_FILE);
    menu->setSize(window.getSize().x, 20);
    menu->addMenu("File");
    menu->addMenuItem("File", "Load");
    menu->addMenuItem("File", "Save");
    menu->addMenuItem("File", "Exit");
    menu->bindCallback(tgui::MenuBar::MenuItemClicked);
    menu->setCallbackId(2);


In version .07 how do I add callback to a widget?