Share via


Small Basic Known Issue: 21694 - Font and Pen Width Change Earlier in Remote

Introduction

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 smallbasic.com environment with internet browser and Silverlight add-in.

Phenomenon

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

Workaround

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

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

Sample Program

http://smallbasic.com/program/?HRK303-2
http://smallbasic.com/program/?FHL579-0 (with workaround)
http://smallbasic.com/program/?FHL579-1 (without workaround)

See Also

Small Basic: Difference Between Local and Remote