ivanomonti Expert Licensed User Longtime User Apr 15, 2018 #1 how can I create a menu item separator! file close --------------------- (separator) quit Thank Last edited: Apr 15, 2018
Cableguy Expert Licensed User Longtime User Apr 15, 2018 #2 Add a root item with only a single dash "-" Upvote 0
ivanomonti Expert Licensed User Longtime User Apr 16, 2018 #3 Cableguy said: Add a root item with only a single dash "-" Click to expand... 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 said: Add a root item with only a single dash "-" Click to expand... 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)
OliverA Expert Licensed User Longtime User Apr 16, 2018 #4 https://www.rwblinn.de/b4j/b4jhowto/index.htm# Look for “MenuBar add Separator dynamically” in the left hand menu Upvote 0
https://www.rwblinn.de/b4j/b4jhowto/index.htm# Look for “MenuBar add Separator dynamically” in the left hand menu
ivanomonti Expert Licensed User Longtime User Apr 16, 2018 #5 OliverA said: https://www.rwblinn.de/b4j/b4jhowto/index.htm# Look for “MenuBar add Separator dynamically” in the left hand menu Click to expand... perfect, thank B4X: Dim joSepMi As JavaObject joSepMi.InitializeNewInstance("javafx.scene.control.SeparatorMenuItem", Null) m1.MenuItems.Add(joSepMi) Upvote 0
OliverA said: https://www.rwblinn.de/b4j/b4jhowto/index.htm# Look for “MenuBar add Separator dynamically” in the left hand menu Click to expand... perfect, thank B4X: Dim joSepMi As JavaObject joSepMi.InitializeNewInstance("javafx.scene.control.SeparatorMenuItem", Null) m1.MenuItems.Add(joSepMi)
Cableguy Expert Licensed User Longtime User Apr 16, 2018 #6 ivanomonti said: 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) Click to expand... 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
ivanomonti said: 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) Click to expand... 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
ivanomonti Expert Licensed User Longtime User Apr 16, 2018 #7 Cableguy said: 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 Click to expand... you're right, I try to be more precise Upvote 0
Cableguy said: 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 Click to expand... you're right, I try to be more precise