MyGUI::PopupMenuPtr for a button


06-07-2008 13:27:27

Hi again, i'd like to make a PopupMenu appear when a button is pressed... but i can't find anyway to do it... maybe someone here may know how? It would be awesome xD

Human Bug

06-07-2008 14:40:56

You make your PopupMenu invisible and when you button is pressed you show the menu.

06-07-2008 18:14:05

Human Bug tnx =)

void main
// create menu and button

void button_click(WidgetPtr _sender)
IntPoint point = InputManager::getInstance().getLastLeftPressed();


07-07-2008 16:47:48

thx guys !