locked
Q: Where is the help reference? RRS feed

  • Question

  • Having used QBasic and REXX in the past, I like the concept of Small Basic for quick 'scripting'.  However, I can't find a reference.  Besides the Getting Started doc, is there any help documentation for SB? 
    Bob
    Thursday, November 20, 2008 7:31 PM

Answers

  • Rimfire Bob,
    This is the thread about the reference manual,
     http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/18ff3622-04dd-476d-9151-d96658ca2174

    Until then just ask a question here on the forum, Vijaye or someone else may have the answer your looking for.


    Path_drc,

    Addline allows you to move a line when used with AnimateShape

      'something to animate over
    GraphicsWindow.FillRectangle(200, 200, 50, 50)
      'draw a line and store as a shape
    Line1 = GraphicsWindow.AddLine(100, 100, 200, 200)
      'move the shape
    GraphicsWindow.AnimateShape(Line1, 200, 200, 2000)

    Drawline returns nothing and cannot be moved in this way

    • Marked as answer by Vijaye Raji Friday, November 21, 2008 2:28 AM
    Thursday, November 20, 2008 8:44 PM

All replies

  • I can't find the thread now, but someone else asked about that and I believe the answer is that they are working on it.
    I would assume they are probably wanting to roll out the reference manual when they push the first bunch of major updates.

    ...but it will be nice to know little things, like what is the difference between

    GraphicsWindow.DrawLine(X1,Y1,X2,Y2)

    and

    GraphicsWindow.AddLine(X1,Y1,X2,Y2)?

     
    Thursday, November 20, 2008 8:17 PM
  • Rimfire Bob,
    This is the thread about the reference manual,
     http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/18ff3622-04dd-476d-9151-d96658ca2174

    Until then just ask a question here on the forum, Vijaye or someone else may have the answer your looking for.


    Path_drc,

    Addline allows you to move a line when used with AnimateShape

      'something to animate over
    GraphicsWindow.FillRectangle(200, 200, 50, 50)
      'draw a line and store as a shape
    Line1 = GraphicsWindow.AddLine(100, 100, 200, 200)
      'move the shape
    GraphicsWindow.AnimateShape(Line1, 200, 200, 2000)

    Drawline returns nothing and cannot be moved in this way

    • Marked as answer by Vijaye Raji Friday, November 21, 2008 2:28 AM
    Thursday, November 20, 2008 8:44 PM
  • Rushworks is absolutely right.

    DrawXX (DrawLine, DrawEllipse, DrawRectangle) are all raster operations that get merged with the layer canvas. 

    AddXX (AddLine, AddEllipse, AddRectangle) are all vector operations, and create a new shape that gets its own layer.  Using this, you get back a reference to the added shape which can then be used to perform various other operations.  For now, you can Move and Animate the shape.  I'm currently adding functionality to zoom and rotate these shapes too.

    T
    Friday, November 21, 2008 2:31 AM