B bluedude Well-Known Member Licensed User Longtime User Oct 31, 2011 #1 Hereby a graphical ToggleButton. Useful for toggles for WIFI etc. Attachments ToggleState.zip 19.7 KB · Views: 1,668
peacemaker Expert Licensed User Longtime User Feb 1, 2012 #2 Thanks, good sample. I hope it can help to create Tabs view (tabs without host, fully controllable grafically comparing to TabHost) Upvote 0
Thanks, good sample. I hope it can help to create Tabs view (tabs without host, fully controllable grafically comparing to TabHost)
F fdx12345 Active Member Licensed User Longtime User Feb 4, 2012 #3 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
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
JonPM Well-Known Member Licensed User Longtime User Feb 4, 2012 #4 fdx12345 said: 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 Click to expand... Depends on when you need the image to change exactly, on a click? Upvote 0
fdx12345 said: 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 Click to expand... Depends on when you need the image to change exactly, on a click?
F fdx12345 Active Member Licensed User Longtime User Feb 4, 2012 #5 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
Change gif image of a button I need the user to be able to assign a gif to a button as an option. Bill
lagore Active Member Licensed User Longtime User Feb 4, 2012 #6 Hi you can use the following; B4X: 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: Feb 4, 2012 Upvote 0
Hi you can use the following; B4X: 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