B4J Question Menu Separator

ivanomonti

Expert
Licensed User
Longtime User
how can I create a menu item separator!

file
close
--------------------- (separator)
quit


Thank

2018-04-15_212647.png
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
Add a root item with only a single dash "-"
 
Upvote 0

ivanomonti

Expert
Licensed User
Longtime User
Add a root item with only a single dash "-"

the menu is runtime ,,, and it does not work as you tell me

B4X:
    Dim mi As MenuItem
    mi.Initialize("-","")
    mi.Enabled = False
    mi.Text = ""
    mi.Tag = ""
    m1.MenuItems.Add(mi)
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
the menu is runtime ,,, and it does not work as you tell me

B4X:
    Dim mi As MenuItem
    mi.Initialize("-","")
    mi.Enabled = False
    mi.Text = ""
    mi.Tag = ""
    m1.MenuItems.Add(mi)
Well, you didn't state it was in runtime in the first post/question, so we cannot provide good meaninful answers if you provide all the details
 
Upvote 0
Top