Bug? MenuItem Action not executed

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

defined in a toolbar a menubutton with two menuitems.

1) When clicking on one of the selected menuitems, nothing happens although the members are generated and the events menuitem_Action are defined.

2) When the menubutton can not be displayed on the toolbar (because of limited toolbar size), it can be accessed via [>>]. When clicking on [>>] the MenuButton appears, but when opening the dropdown menu to select one of the menuitems, the dropdown disappears.
 

NJDude

Expert
Licensed User
Longtime User
You are not showing your code, so not sure what you're doing, however, if you define a menuitem the event is not ACTION but CLICK
B4X:
...

Activity.AddMenuItem("Open File", "myMenuItem")

...

Sub myMenuItem_Click

 ...

End Sub
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Please upload your project (File - Export as zip).
Pls find the project ropContactZ attached. Note it uses a library routils which is included.
The menubutton is Extra with two menuitems.
I checked via logging: it seems the menuitems are not initialized automatically although defined in the fxml-file.
Appreciate your help.
 

Attachments

  • rocontactz.zip
    14.8 KB · Views: 267
Top