Small Basic: Difference Between Local and Remote

Small Basic: Difference Between Local and Remote

I'd like to introduce known issues about behavior difference between local (Small Basic IDE) and remote (smallbasic.com with Silverlight) run time environment in this article.

  1. Object Dictionary doesn't work in remote.
  2. GraphicsWindow operations written in event handlers are suspended in remote.
  3. Default GraphicsWindow.BackgroundColor is "#FFFFFF" in local but "#FFFFFFFF" in remote.
  4. Default GraphicsWindow.BrushColor is "#6A5ACD" in local but "#FF88AACC" in remote.
  5. Default GraphicsWindow.CanResize is "True" in local but "False" in remote.
  6. GraphicsWindow.DrawRectangle() is as smaller as GraphicsWindow.PenWidth in remote.
  7. Default GraphicsWindow.FontName is "Tahoma" in local but "Segoe UI" in remote.
  8. Setting to GraphicsWindow.FontSize or GraphicsWindow.PenWidth sometimes happen before previous drawing statements in remote.
  9. GraphicsWindow.GetPixel() returns "#rrggbb"in local but “#FFrrggbb” in remote.
  10. GraphicsWindow.GetPixel(x, y) doesn’t work properly if x or y has after decimal point in remote.
  11. Default GraphicsWindow.Height is 443 in local but 480 in remote.
  12. GraphicsWindow.LastText returns as same key name as GraphicsWindow.LastKey in remote.
  13. GraphicsWindow.MouseX and GraphicsWindow.MouseY don’t return integer in remote.
  14. Default GraphicsWindow.PenColor is "#000000" in local but "#FF000000" in remote.
  15. Default GraphicsWindow.Width is 624 in local but 640 in remote.
  16. ImageList.GetHeightOfImage() and ImageList.GetWidthOfImage() return zeros in remote.
  17. Network.GetWebPageContents() doesn't work in remote.
  18. Program.Delay() is needed in loop in remote.
  19. Shapes.Rotate() rotates triangle and line at center in local but at corner in remote.
  20. Sound.PlayMusic() and Sound.Play() do nothing in remote.
  21. TextWindow.CursorLeft and TextWindow.CursorTop can’t be set in remote.
  22. Short Timer.Interval (such as 20) is too heavy in remote.

And following facts must be specification.

  • Line with File object statement will be commented out in remote.
  • Extension doesn't work in remote.
  • Before using key input with GraphicsWindow.LastKey, you need to click the program screen in remote.
  • GraphicsWindow.Left and GraphicsWindow.Top are always zero in remote.
  • Sound of Sound.PlayClick() is different between local and remote.
  • Mouse.IsRightButtonDown is always "False" because of Silverlight popup.
Leave a Comment
  • Please add 4 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Nonki Takahashi edited Revision 15. Comment: deleted nested <ol>s

  • Nonki Takahashi edited Revision 14. Comment: added default GraphicsWindow properties

  • Nonki Takahashi edited Revision 13. Comment: added GraphicsWindow operations suspended

  • Nonki Takahashi edited Revision 12. Comment: moved click issue from difference to specification

  • Nonki Takahashi edited Revision 10. Comment: update about key input

  • Nonki Takahashi edited Revision 9. Comment: added issue about GraphicsWindow.LastText

  • Nonki Takahashi edited Revision 8. Comment: added Mouse.IsRightButtonDown issue

  • Richard Mueller edited Revision 6. Comment: Modified title casing

  • Nonki Takahashi edited Revision 5. Comment: Network.GetWebPageContents()

  • Nonki Takahashi edited Revision 4. Comment: 11. doesn't work -> do nothing

Page 1 of 1 (10 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Nonki Takahashi edited Revision 4. Comment: 11. doesn't work -> do nothing

  • Nonki Takahashi edited Revision 5. Comment: Network.GetWebPageContents()

  • Richard Mueller edited Revision 6. Comment: Modified title casing

  • Good, thanks Nonki for building this list!

  • Nonki Takahashi edited Revision 8. Comment: added Mouse.IsRightButtonDown issue

  • Nonki Takahashi edited Revision 9. Comment: added issue about GraphicsWindow.LastText

  • Nonki Takahashi edited Revision 10. Comment: update about key input

  • Nonki Takahashi edited Revision 12. Comment: moved click issue from difference to specification

  • Nonki Takahashi edited Revision 13. Comment: added GraphicsWindow operations suspended

  • Thank you, Nonki for this overview.

    Will these differences be fixed in the near future? I am particularly interested  in 11.

  • Florian, there is no plan to fix these differences so far.  Some issues have workaround but 11 doesn't have any solution at this point.

  • Nonki Takahashi edited Revision 14. Comment: added default GraphicsWindow properties

  • I added some items, so numbers are changed.  Former 11 becomes 17 - Network.GetWebPageContents() doesn't work in remote.

  • Nonki Takahashi edited Revision 15. Comment: deleted nested <ol>s

Page 1 of 1 (14 items)