B4J Question B4J 3.50 How to add menu items - Internal Designer

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings.

Thank you in advance for answering my question.

I see in the Internal Designer under Menu Bar, that I have to add a JSON string for the menu items.

1. I do not know JSON.
2. How to generate events for each of the menu items?
3. Is there an example that I could follow?

Or is the alternative to create a pane with labels for each top menu selection and sub-menus appearing as listviews? In effect, creating a Menu System Object...

Sandy
 

tdocs2

Well-Known Member
Licensed User
Longtime User
I found this in the Internal Designer:

B4X:
[
    {Text: "_File", Children:
        ["_New", "_Save",
        {Text: "_Export", Children: ["Zip File", "Tar File"]},
        "-",
        "_Close"]
    },
    {Text: "_Edit", Children:[] },
    {Text: "_Help", Children:
        [
            {Text: "Checked Item", Selected: True},
            {Text: "Disabled Item", Enabled: False},
            {Text: "Item With Unique Event Name",
                EventName: "mnu1234"},
            {Text: "Item With Tag", Tag: "MyTag"}
        ]
    }
]

What is the name of the sub _Save to capture the Save event?

Thank you
 
Last edited:
Upvote 0
Top