D daniedb Active Member Licensed User Longtime User May 29, 2015 #1 This might be a stupid/simple question, but I cannot get it to work. I want to display 2 images on all views without adding that image to every layout eg: in timer embed I will have something like: Code: Copy if InstToUSe=False active_img.Bitmap=LoadBitmap(File.DirAssets,"rdot.png") else active_img.Bitmap=LoadBitmap(File.DirAssets,"gdot.png") end if And Update all views when opened with that image I try to use the same Variable Name on all views, but don't seems to work Thanks Danie
This might be a stupid/simple question, but I cannot get it to work. I want to display 2 images on all views without adding that image to every layout eg: in timer embed I will have something like: Code: Copy if InstToUSe=False active_img.Bitmap=LoadBitmap(File.DirAssets,"rdot.png") else active_img.Bitmap=LoadBitmap(File.DirAssets,"gdot.png") end if And Update all views when opened with that image I try to use the same Variable Name on all views, but don't seems to work Thanks Danie
Erel B4X founder Staff member Licensed User Longtime User May 29, 2015 #2 Not sure that I understand. Why do you need a timer for this? The variable will reference the last view added with this name. You can either set the image at that point or add the view to a list and later set the image to all views from the list. Make sure not to load the same image multiple times. Upvote 0
Not sure that I understand. Why do you need a timer for this? The variable will reference the last view added with this name. You can either set the image at that point or add the view to a list and later set the image to all views from the list. Make sure not to load the same image multiple times.
D daniedb Active Member Licensed User Longtime User May 29, 2015 #3 Hi Erel. In the Timer I process various variables and calculations, and depending on the status if some variables I want to display that image on any view open at that time. Thanks Upvote 0
Hi Erel. In the Timer I process various variables and calculations, and depending on the status if some variables I want to display that image on any view open at that time. Thanks