ValDog Active Member Licensed User Longtime User Oct 26, 2014 #1 After drawing something on a panel in B4A we would use something like: Panel.Invalidate to force a re-paint. How do we do that in B4J?
After drawing something on a panel in B4A we would use something like: Panel.Invalidate to force a re-paint. How do we do that in B4J?
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2014 #2 You don't need to invalidate the view. The drawing will appear immediately. Upvote 0
ValDog Active Member Licensed User Longtime User Oct 27, 2014 #3 Erel said: You don't need to invalidate the view. The drawing will appear immediately. Click to expand... Erel, thanks - I later got that to work. Question is though, if I am plotting real time measurements I guess I would need to clear the display and redraw the entire curve. What's the best way to do that? Upvote 0
Erel said: You don't need to invalidate the view. The drawing will appear immediately. Click to expand... Erel, thanks - I later got that to work. Question is though, if I am plotting real time measurements I guess I would need to clear the display and redraw the entire curve. What's the best way to do that?
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2014 #4 You can use Canvas.ClearRect or DrawRect to clear the canvas. Upvote 0
ValDog Active Member Licensed User Longtime User Oct 27, 2014 #5 Erel said: You can use Canvas.ClearRect or DrawRect to clear the canvas. Click to expand... Erel, thanks! ClearRect works like a charm!! Upvote 0
Erel said: You can use Canvas.ClearRect or DrawRect to clear the canvas. Click to expand... Erel, thanks! ClearRect works like a charm!!