Results 1 to 10 of 10

Thread: problem with TextOut

  1. #1

    problem with TextOut

    I have a problem. When I use the textout code the text is written on the screen but with black times new roman with white background. I want the text background to be transparent and the text in an other color. It is possible?
    Code:
            
            Bufferbox.Canvas.TextOut(posX, posY, Text);

  2. #2

    Re: problem with TextOut

    If i can remember well you can use:

    Bufferbox.brush.style:=bsClear;

    or something similar
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  3. #3

    problem with TextOut

    yes it is possible. You have to set the brush style to bsclear like this

    Bufferbox.Canvas.brush.style := bsclear;

    and then render the font..

    Alternative colors can be achieved by setting the font color.

    Bufferbox.Canvas.Font.Color := $ABCDEF;

    Edit: Ahh shoot {MSX} you beat me to it by one minute.
    Yours is almost right, Brush is a property of the canvas.

  4. #4

    problem with TextOut

    thanks

  5. #5

    problem with TextOut

    but how do you change the font?

  6. #6

    problem with TextOut

    Quote Originally Posted by Traveler
    Edit: Ahh shoot {MSX} you beat me to it by one minute.
    Yours is almost right, Brush is a property of the canvas.
    Too bad, i missed that step
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  7. #7

    problem with TextOut

    canvas.font.name := 'Arial';

    yes sir!
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  8. #8

    problem with TextOut

    thanks again
    this forum is the best :!: :!:

  9. #9
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    problem with TextOut

    Quote Originally Posted by neafriem
    this forum is the best :!: :!:
    Jason McMillen
    Pascal Game Development
    Co-Founder





  10. #10

    problem with TextOut

    Quote Originally Posted by neafriem
    this forum is the best :!: :!:
    Your questions were easy Wait till you start asking about say for example how to do a gameloop and whether it should take all cpu power. Suddenly you see 20 different opinions.

    But yeah, this forum is the best around (for Pascal Game Dev)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •