B4J Question Menu Separator

ivanomonti

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

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


Thank

 
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
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…