Hi all,
I have the following to draw a canvas with some objects inside and I'm using the SideBar Extension (this one). When I run the Companion, the app starts with a 'welcome' tab, while the canvas is in another SideBar's tab. When I change tab to visualize the canvas, it shows a strange result. I suppose that the app has no time to draw correctly all the canvas items. If this is the case, may be I should use the Procedure component with Result but I don't know how. Is that the right way to be sure that all the canvas has completed its internal drawing? Thanks
Try with a clock timer (250ms or 500ms) and call the clock after procedure JS_Set, and put everything currently after JS_Set in the clock timer event, also stopping the clock.
The canvas is correctly drawn if the app SideBar starts with the active tab (the first one that appear on screen at startup) with the canvas inside (third shot in my first post). Otherwise, opening the canvas tab after swiping the SideBar and selecting its tab, the canvas items are wrong.
Thanks all. Finally, a dedicated clock is the solution. It works for me inthe following way, so the Canvas VerticalArrangement is created at startup (visible for clock Interval = 500) and then hided by the Main screen (VerticalArrangement VA1).