jesustarre Member Licensed User Longtime User May 14, 2020 #1 How can I add a png file to my button from the designer? The designer shows the option but does not let me add any image Thank you Attachments Capture01.PNG 7 KB · Views: 140 Last edited: May 14, 2020
How can I add a png file to my button from the designer? The designer shows the option but does not let me add any image Thank you
jesustarre Member Licensed User Longtime User May 14, 2020 #2 Done! Dim wcrimg As Bitmap (...) wcrimg.Initialize(File.DirAssets,"wcr-c2.png") SetBackgroundImage (wcr,wcrimg, 0) (...) Sub SetBackgroundImage(b As Button, bmp As Bitmap, state As Int) Dim no As NativeObject = b no.RunMethod("setBackgroundImage:forState:", Array(bmp, state)) End Sub Click to expand... Upvote 0
Done! Dim wcrimg As Bitmap (...) wcrimg.Initialize(File.DirAssets,"wcr-c2.png") SetBackgroundImage (wcr,wcrimg, 0) (...) Sub SetBackgroundImage(b As Button, bmp As Bitmap, state As Int) Dim no As NativeObject = b no.RunMethod("setBackgroundImage:forState:", Array(bmp, state)) End Sub Click to expand...