stevel05 Expert Licensed User Longtime User Oct 24, 2014 #1 The installation of B4i went smoothly thank you for the tutorials @Erel, they made it straight froward to get it installed and working. My first question is that is does not appear possible to draw on a canvas attached to the RootPanel, there are no errors, the drawings just don't appear. I can add a panel to it and draw on a canvas attached to that. Is this by design? It's not a problem, just a question to help with understanding the RootPanel.
The installation of B4i went smoothly thank you for the tutorials @Erel, they made it straight froward to get it installed and working. My first question is that is does not appear possible to draw on a canvas attached to the RootPanel, there are no errors, the drawings just don't appear. I can add a panel to it and draw on a canvas attached to that. Is this by design? It's not a problem, just a question to help with understanding the RootPanel.
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2014 #2 There will be a tutorial about Canvas. You can draw on the RootPanel. However you need to recreate the canvas each time the page is resized: Code: Sub Page1_Resize (...) Canvas.Release 'first release the old object if there is one Canvas.Initialize(Page1.RootPanel) End Sub Upvote 0
There will be a tutorial about Canvas. You can draw on the RootPanel. However you need to recreate the canvas each time the page is resized: Code: Sub Page1_Resize (...) Canvas.Release 'first release the old object if there is one Canvas.Initialize(Page1.RootPanel) End Sub
stevel05 Expert Licensed User Longtime User Oct 24, 2014 #3 That makes sense and works, thank you. Upvote 0