Add new checkboxmenuentry to menubar.
| 668 | |
| 669 | // Add new checkboxmenuentry to menubar. |
| 670 | void ScrollView::MenuItem(const char* parent, const char* name, |
| 671 | int cmdEvent, bool flag) { |
| 672 | if (parent == NULL) { parent = ""; } |
| 673 | if (flag) { SendMsg("addMenuBarItem('%s','%s',%d,true)", |
| 674 | parent, name, cmdEvent); |
| 675 | } else { SendMsg("addMenuBarItem('%s','%s',%d,false)", |
| 676 | parent, name, cmdEvent); } |
| 677 | } |
| 678 | |
| 679 | // Add new menuentry to menubar. |
| 680 | void ScrollView::MenuItem(const char* parent, const char* name, int cmdEvent) { |