Strange issue of point not drawing on canvas initialize in simple program

I am a beginner with MIT App Inventor. I am making a very simple program where on initialization of the screen, a point is drawn. However, no matter what I do, no point will draw on initialization. I can get the point to draw in plenty of other ways and places, but not on the initialization of the screen. Any ideas why?

Most likely the canvas has not had enough time to collect its coordinates (height/width) on initialisation.

The way around this is to use a clock timer, usually with an interval of 250ms, before trying to draw your point

image

Note, when I test with companion on my Pixel 4a, I do not need to use a clock timer...

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.