GMan Well-Known Member Licensed User Longtime User Oct 13, 2026 #1 How can i achive this since the Button has no programmable parameters. The Button is added through the designer I tried this with no success: B4X: Copy Sub SetGraphic(Btn As Button, Graphic As Node) Dim jo As JavaObject = Btn jo.RunMethod("setGraphic", Array(Graphic)) End Sub B4X: Copy Button1.TooltipText = "Test" ' Dim iv As ImageView iv.Initialize("") iv.SetImage(fx.LoadImage(File.DirAssets, "iconau.png")) SetGraphic(Button1, iv) The image is not changing
How can i achive this since the Button has no programmable parameters. The Button is added through the designer I tried this with no success: B4X: Copy Sub SetGraphic(Btn As Button, Graphic As Node) Dim jo As JavaObject = Btn jo.RunMethod("setGraphic", Array(Graphic)) End Sub B4X: Copy Button1.TooltipText = "Test" ' Dim iv As ImageView iv.Initialize("") iv.SetImage(fx.LoadImage(File.DirAssets, "iconau.png")) SetGraphic(Button1, iv) The image is not changing
TILogistic Expert Licensed User Longtime User Oct 14, 2026 #3 ? Button with icon + text How do I create a button with Font Awesome + Custom Font? I can use Font Awesome to show the text but sometimes it doesn't work as I wish (text show with mixture of bold and unbold). www.b4x.com and animation: Button with icon + text How do I create a button with Font Awesome + Custom Font? I can use Font Awesome to show the text but sometimes it doesn't work as I wish (text show with mixture of bold and unbold). www.b4x.com Upvote 0
? Button with icon + text How do I create a button with Font Awesome + Custom Font? I can use Font Awesome to show the text but sometimes it doesn't work as I wish (text show with mixture of bold and unbold). www.b4x.com and animation: Button with icon + text How do I create a button with Font Awesome + Custom Font? I can use Font Awesome to show the text but sometimes it doesn't work as I wish (text show with mixture of bold and unbold). www.b4x.com
GMan Well-Known Member Licensed User Longtime User Oct 14, 2026 #4 Thx...i got it already some miinutes after posting Upvote 0