Arnaud Active Member Licensed User Longtime User Sep 28, 2023 #1 Hello, I would like use "context menu" in B4J, but I nedd to creat this in function of the language choosen by the user, so I cannot use cannot use directly the designer to encode this. For example, if user use english language, I would like encode this : Code: Copy ["New", "Save", "Close"] If the user use the french language, I would like encode this : Code: Copy ["Nouveau", "Sauvegarder", "Fermer"] Is it possible to encode this directly in the label, something like the code below ? Code: Copy Private lbl As Label lbl.Initialize("test") lbl.Enabled = True lbl.MouseCursor = fx.Cursors.HAND lbl.Font = fx.CreateFontAwesome(19 ) lbl.TextColor=fx.Colors.Blue lbl.ContextMenu=????? Thanks for your help.
Hello, I would like use "context menu" in B4J, but I nedd to creat this in function of the language choosen by the user, so I cannot use cannot use directly the designer to encode this. For example, if user use english language, I would like encode this : Code: Copy ["New", "Save", "Close"] If the user use the french language, I would like encode this : Code: Copy ["Nouveau", "Sauvegarder", "Fermer"] Is it possible to encode this directly in the label, something like the code below ? Code: Copy Private lbl As Label lbl.Initialize("test") lbl.Enabled = True lbl.MouseCursor = fx.Cursors.HAND lbl.Font = fx.CreateFontAwesome(19 ) lbl.TextColor=fx.Colors.Blue lbl.ContextMenu=????? Thanks for your help.
Erel B4X founder Staff member Licensed User Longtime User Sep 28, 2023 #2 Contextmenu (SOLVED) Can anyone give me an example of how to add a contextmenu to a Label. It's probably easy but I cannot get it to work. I have searched the forum but nothing helped. Thanks Dave. www.b4x.com Upvote 0
Contextmenu (SOLVED) Can anyone give me an example of how to add a contextmenu to a Label. It's probably easy but I cannot get it to work. I have searched the forum but nothing helped. Thanks Dave. www.b4x.com