Announcement

Collapse
No announcement yet.

Silly question about print()

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

  • Silly question about print()

    Hello all,
    I am using uLCD_gen4-24DT (Diablo 16) and ViSi and I jsut start to learn this product.
    My problem is about the print() function :

    txt_FontID(FONT_4) ;
    txt_Width(2);
    txt_Height(2);
    txt_FGcolour(BLUE) ;
    txt_BGcolour(BLACK) ;
    gfx_MoveTo(10 , 78) ;
    print(1234) ;
    Until there it's OK

    Later, I want to replace the first text with another text at the same place :
    gfx_MoveTo(10 , 78) ;
    print(5678) ;

    The result is the two texts are mixed and not readable. Therefore, how to erase the first text before printing the second one ?
    Thanks for your help


    Starts
    3 November 2020
    Ends
    4 November 2020

  • #2
    Hello,

    Welcome to the forum,

    You can use the command,

    txt_Opacity(OPAQUE);

    to print the text with a background. It will be set to TRANSPARENT initially which is why you see the text being drawn on top of each other.

    I hope this helps

    Best regards

    Paul

    Comment


    • #3
      Thanks a lot for your help. It works !

      Comment

      Working...
      X