locked
Pixels and symbols on graphicswindow? RRS feed

  • Question

  • well, i began my programming career on a TI-84 plus, and i was wondering if you could do a type of "Output(1,1,"*')" command (ill explain later) in small basic? the command is basically saying:

    • display an asterisk at coordinates 1,1 on the screen (graphicswindow)

    is there any way to use this type of a command in small basic?

        (:D)

    ardiezc_quazhulu!!!!!!!

    Thursday, March 14, 2013 12:04 AM

Answers

  • For pixel: GraphicsWindow.SetPixel(1, 1, color)

    For symbol (or text): GraphicsWindow.DrawText(1, 1, "*")

    For symbol (or text), you should calculate appropriate coordinate in GraphicsWindow from the font size.


    Nonki Takahashi

    Thursday, March 14, 2013 11:56 AM
  • Oops! Forgot to replace GraphicsWindow for TextWindow!  @_@

    And worse, It's CursorLeftCursorTop properties instead!

    Sorry for my mistake! Here are the full property commands:

    TextWindow.CursorLeft & TextWindow.CursorTop 


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

    Friday, March 15, 2013 7:27 PM
    Answerer

All replies

  • I believe there are -> GraphicsWindow.Left & GraphicsWindow.Top to position the cursor!

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

    Thursday, March 14, 2013 12:10 AM
    Answerer
  • i will try that thanks!!! (:D)
    Thursday, March 14, 2013 12:11 AM
  • For pixel: GraphicsWindow.SetPixel(1, 1, color)

    For symbol (or text): GraphicsWindow.DrawText(1, 1, "*")

    For symbol (or text), you should calculate appropriate coordinate in GraphicsWindow from the font size.


    Nonki Takahashi

    Thursday, March 14, 2013 11:56 AM
  • thank you SO much (:D) (:D)

    ooh... you're lucky, you got TWO smiley faces:)

    Thursday, March 14, 2013 10:13 PM
  • I believe there are -> GraphicsWindow.Left & GraphicsWindow.Top to position the cursor

    No, These commands position the GraphicsWindow itself on the Desktop !!


    Jan [ WhTurner ] The Netherlands

    Friday, March 15, 2013 6:41 PM
    Answerer
  • Oops! Forgot to replace GraphicsWindow for TextWindow!  @_@

    And worse, It's CursorLeftCursorTop properties instead!

    Sorry for my mistake! Here are the full property commands:

    TextWindow.CursorLeft & TextWindow.CursorTop 


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

    Friday, March 15, 2013 7:27 PM
    Answerer