Announcement

Collapse
No announcement yet.

TEXT_UNDERLINED not working?

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

  • TEXT_UNDERLINED not working?

    I am not able to get underline using the following code, whats wrong?

    HTML Code:
    func main()
    
    gfx_Set(SCREEN_RES,2);
    gfx_BGcolour(GRAY);
    gfx_Cls();
    
    txt_Set(FONT_ID, FONT1);
    txt_Set(TEXT_WIDTH, 2);
    txt_Set(TEXT_HEIGHT, 2);
    txt_Set(TEXT_COLOUR,BLACK);
    txt_Set(TEXT_OPACITY, TRANSPARENT);
    txt_Set(TEXT_UNDERLINED , ON);
    
    gfx_Set(PEN_SIZE,SOLID);
    gfx_Set(OBJECT_COLOUR,YELLOW);
    
    repeat
    
    gfx_MoveTo(100,100);
    //gfx_BoxTo(left+300, top+23);
    print("Hello World");
    
    forever
    
    endfunc

  • #2


    The underlining occurs under the character(s), so you need to set txt_Ygap to some non zero value before you can see underlining.



    eg



    txt_Ygap(2) ;
    Mark

    Comment

    Working...
    X