Shop OBEX P1 Docs P2 Docs Learn Events
text edit — Parallax Forums

text edit

onclepicsouonclepicsou Posts: 7
edited 2007-03-29 15:03 in Propeller 1
hello
using the text objects (tv or vga)
i'd like to delete the last character if needed
and have the page scroll

a way to do it ?

thanks

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-03-29 15:02
    If you look at the way characters are placed on the screen is one of the drivers, if you adjust the column/row index to decrement it by 1, they send a space to it, you will effectively·"erase" the last character. Most of the text display objects already have a terminal type of scroll (single direction machine controlled scrolling). If you are looking for a scroll-bar type user interface, that would be considerably more involved.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2007-03-29 15:03
    A simple way to delete would be to keep track of the last key(s) pressed, change the font color to the background color, and to re-type the last character at the last position.
    Scrolling is a bit tougher...

    -Martin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    StampPlot - GUI and Plotting, and XBee Wireless Adapters
    Southern Illinois University Carbondale, Electronic Systems Technologies
Sign In or Register to comment.