Statements and Graphic Objects

When working with the code for pages, you may see the word "statement" used in a way that makes it seem synonymous with "graphic object"

Every item on a page is drawn using one of VTS's graphics functions as shown in the following example:

  GUITransform(164, 256, 336, 168, 

               1, 1, 1, 1, 1 { Scaling }, 

               0, 0 { Movement }, 

               1, 0 { Visibility, scaling }, 

               0, 0, 0 { Selectability }, 

               Variable("Library")\Bitmap(

               "Bitmaps\Tanks\Tank06.bmp", -1)); 

  An interesting feature of VTS is that you can copy an item from a page (ctrl-C), open a text editor, and within the editor do a paste operation (ctrl-V) to see the function used to draw that item. Conversely, you can copy the code for the GUITransform shown here, go to a VTS page and do a paste. You would see a bitmap of a tank appear on the page, rather than the text of the VTS statement you selected.

Remembering that the definition of a statement is: "a basic command that signals VTS to perform a specified action", it is fair to refer to graphic object functions as "statements". Behind the scenes, each item on a page is created and controlled by a one-function statement.