locked
The reason for Default property values RRS feed

  • Question

  • GraphicsWindow.DrawBoundText(20, 20, GraphicsWindow.Width, showtime)

    Does the above argument, "GraphicsWindow.Width", get and return the default window width?

    If so does that mean that this object property is a assigned a default value, because if it wasn't then we would have to set it everytime we use the GraphicsWindow object otherwise the object wouldn't exist?

    Monday, January 14, 2013 10:18 AM

Answers

  • GraphicsWindow.Width is a read&write property of object GraphicsWindow.

    Properties are like internal variables for SB's class objects.

    When object GraphicsWindow is used for the 1st time, SB creates and displays its window.

    And of course, it uses many default values for all of its properties, not just Width & Height.

    Here's a simple example which stores default Height property in variable gh.

    And it uses that to change Title property, which displays 442 at the titlebar!  :D

    gh = GraphicsWindow.height
    GraphicsWindow.Title = gh


    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

    • Edited by GoToLoopEditor Monday, January 14, 2013 10:44 AM
    • Marked as answer by Jibba j Monday, January 14, 2013 11:29 AM
    Monday, January 14, 2013 10:38 AM
    Answerer