Announcement

Collapse
No announcement yet.

Clear screen when screen is full

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Clear screen when screen is full

    Hello,

    Hope it goes well?

    I created a app where I received a long string, problem is when the string fills the screen it's not scrolling down so I wanted to find out if there is a way to clear the screen when the screen is full?

    It's a type of Data Logging so I need to see the new string coming trough the serials.

  • #2
    Hi,

    To clear the screen you only need to use the command:

    Code:
    gfx_Cls();
    To do this every time the screen is filled with text, first, you need to figure out when the screen is at that state.

    For this, you can check the position of the text cursor. The position can be checked using the commands:

    Code:
    var x, y;
    x := peekW(TEXT_XPOS);
    y := peekW(TEXT_YPOS);
    These commands give the current X and Y position of the text.

    I've attached an example, gfx_Cls.zip, for implementing this. I hope this helps.

    Best Regards,


    Juniel
    Juniel Cruz

    Comment

    Working...
    X