------------------------------------------------------------------------------
| 1429 | |
| 1430 | //------------------------------------------------------------------------------ |
| 1431 | void GuiMenuBar::onAction() |
| 1432 | { |
| 1433 | if(!mouseDownMenu) |
| 1434 | return; |
| 1435 | |
| 1436 | mouseDownMenu->popupMenu->hidePopup(); |
| 1437 | |
| 1438 | // first, call the script callback for menu selection: |
| 1439 | onMenuSelect_callback(mouseDownMenu->popupMenu->getId(), mouseDownMenu->text); |
| 1440 | |
| 1441 | mouseDownMenu->popupMenu->mMenuBarCtrl = this; |
| 1442 | |
| 1443 | GuiCanvas *root = getRoot(); |
| 1444 | Point2I pos = Point2I(mouseDownMenu->bounds.point.x, mouseDownMenu->bounds.point.y + mouseDownMenu->bounds.extent.y); |
| 1445 | mouseDownMenu->popupMenu->showPopup(root, pos.x, pos.y); |
| 1446 | } |
| 1447 | |
| 1448 | // Process a tick |
| 1449 | void GuiMenuBar::processTick() |