item = demoMenu.addItem(2002, "&Normal");
TSubMenu subMenu = demoMenu.addSubMenu("Sub-&Menu");
item = demoMenu.addItem(2010, "N&ormal A&&D");
+ item = demoMenu.addItem(2050, "Co&lors...");
item = subMenu.addItem(2000, "&Checkable (sub)");
item.setCheckable(true);
*/
@Override
public boolean onMenu(final TMenuEvent menu) {
+
+ if (menu.getId() == 2050) {
+ new TEditColorThemeWindow(this);
+ return true;
+ }
+
if (menu.getId() == TMenu.MID_OPEN_FILE) {
try {
String filename = fileOpenBox(".");