Graphical ToggleButton sample

Thanks, good sample.
I hope it can help to create Tabs view (tabs without host, fully controllable grafically comparing to TabHost)
 
Upvote 0
Now change the button picture through b4a code

Now how do we change the gif image of a button through b4a code? I need to be able to do this on the fly.

Bill
 
Upvote 0
Change gif image of a button

I need the user to be able to assign a gif to a button as an option.

Bill
 
Upvote 0
Hi you can use the following;
Code: Copy
Dim bm As Bitmap
   bm.Initialize(File.DirAssets,"checkmark_green.png")

   OkBtn.SetBackgroundImage(bm)
just put a variable in place of "checkmark_green.png" and load that in code from the user selection. It can be a .jpg, .png, .bmp or .gif
 
Last edited:
Upvote 0
Back
Top