Erel B4X founder Staff member Licensed User Longtime User Jan 1, 2019 #2 A canvas in B4A is not a view. It draws on the bitmap that is used as the view's background. What exactly do you need to do? Upvote 0
A canvas in B4A is not a view. It draws on the bitmap that is used as the view's background. What exactly do you need to do?
Mark.S Member Licensed User Jan 1, 2019 #3 I need to turn on/off a canvas which a 4dip red line has been drawn around two adjacent labels with a arrow pointing to a third label. On another point I should have upgraded to your latest version with the auto backup. i've just lost a weeks work, PC blue screened, solid drive has failed Upvote 0
I need to turn on/off a canvas which a 4dip red line has been drawn around two adjacent labels with a arrow pointing to a third label. On another point I should have upgraded to your latest version with the auto backup. i've just lost a weeks work, PC blue screened, solid drive has failed
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2019 #4 You have two options: 1. Clear the drawing with Canvas.DrawColor or B4XCanvas.ClearRect. 2. If you really want to "remove" the canvas then draw over a mutable bitmap with Canvas.Initialize2. Set the view background to be a BitmapDrawable when you want to draw over it and set it to whatever other background you like when it is not needed. Start with option #1. Upvote 0
You have two options: 1. Clear the drawing with Canvas.DrawColor or B4XCanvas.ClearRect. 2. If you really want to "remove" the canvas then draw over a mutable bitmap with Canvas.Initialize2. Set the view background to be a BitmapDrawable when you want to draw over it and set it to whatever other background you like when it is not needed. Start with option #1.