B4J Question Context Menu

Arnaud

Active Member
Licensed User
Longtime User
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 :

English exemple:
["New", "Save", "Close"]

If the user use the french language, I would like encode this :

French exemple:
["Nouveau", "Sauvegarder", "Fermer"]

Is it possible to encode this directly in the label, something like the code below ?

exemple label:
        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.
 
Top