Good morning,
must be blind but how can I do this, disable a menu entry?
THX
must be blind but how can I do this, disable a menu entry?
THX
B4X:
MenuBar menuBar = new MenuBar();
Menu menu = new Menu("File");
MenuItem newItem = new MenuItem("Load");
menu.getItems().add(newItem);
menu.getItems().add(new MenuItem("Save"));
menu.getItems().add(new SeparatorMenuItem());
menu.getItems().add(new MenuItem("Quit"));
newItem.setDisable(true);