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

Discussion in 'B4J Questions' started by tdocs2, Jul 25, 2015.

Similar threads

B4J Tutorial Designer Menu Items
B4J Tutorial Internal Visual Designer
B4J Library Menu Manager
Share My Creation Menu Designer
B4J Code Snippet CSS style reference guide.
B4J Tutorial [ABMaterial] ABMNavigationBar changes in 1.08
  1. tdocs2

    tdocs2 Well-Known Member Licensed 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
     
  2. tdocs2

    tdocs2 Well-Known Member Licensed User

    I found this in the Internal Designer:

    Code:
    [
        {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: Jul 25, 2015
  3. Erel

    Erel Administrator Staff Member Licensed User

  4. tdocs2

    tdocs2 Well-Known Member Licensed User

    Thank you, Erel.
     
Loading...