GMan Well-Known Member Licensed User Longtime User Jun 2, 2016 #1 How can i use the original code given by B4J after adding a menu bar ? B4X: [ {Text: "_File", Children: [ "_Neu", "_Sichern", {Text: "_Export", Children: ["Zip File", "Tar File"]}, "-", "_Beenden" ] }, {Text: "_Setup", Children:[] }, {Text: "_Hilfe", Children: [ {Text: "Checked Item", Selected: True, Shortcut: {Key: "F1"}}, {Text: "Disabled Item", Enabled: False}, {Text: "Item With Unique Event Name", EventName: "mnu1234"}, {Text: "Item With Tag", Tag: "MyTag"} ] } ] Mean, how can i check a click on i.e. Close (Beenden) ?
How can i use the original code given by B4J after adding a menu bar ? B4X: [ {Text: "_File", Children: [ "_Neu", "_Sichern", {Text: "_Export", Children: ["Zip File", "Tar File"]}, "-", "_Beenden" ] }, {Text: "_Setup", Children:[] }, {Text: "_Hilfe", Children: [ {Text: "Checked Item", Selected: True, Shortcut: {Key: "F1"}}, {Text: "Disabled Item", Enabled: False}, {Text: "Item With Unique Event Name", EventName: "mnu1234"}, {Text: "Item With Tag", Tag: "MyTag"} ] } ] Mean, how can i check a click on i.e. Close (Beenden) ?
jmon Well-Known Member Licensed User Longtime User Jun 3, 2016 #2 can you try: B4X: Sub mnu1234_Action 'your code End Sub Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2016 #3 See the Events section: https://www.b4x.com/android/forum/threads/designer-menu-items.56602/ Upvote 0