Series of know issues articles are showing known issue itself about Small Basic and it's workaround.  In this article, local means Small Basic IDE environment and remote means environment with internet browser and Silverlight add-in.


Setting to GraphicsWindow.FontName, GraphicsWindow.FontSize and GraphicsWindow.PenWidth sometimes happen before previous drawing statements in remote.  Picture 1 shows texts and ellipses in local.  Picture 2 shows the same result in remote.

Picture 1 - Result in Local

Picture 2 - Result in Remote


To avoid this issue, insert delay 300 ms before FontName, FontSize or PenWidth change.
GraphicsWindow.PenWidth = pw

msWait = 300
If silverlight Then
  Program.Delay(msWait) ' for remote
GraphicsWindow.PenWidth = pw

Sample Program (with workaround) (without workaround)

See Also

Small Basic: Difference Between Local and Remote