Results 1 to 3 of 3

Thread: TDirectDrawSurface TextOut

  1. #1

    Unhappy TDirectDrawSurface TextOut

    I created a variable that decend from TDirectDrawSurface;

    Var
    Test : TDirectDrawSurface;

    I want to design a writing:
    Test.Canvas.TextOut(10,10,'Hello World');

    Display screen
    DXDraw1.Surface.Draw(0, 0, Test);

    Only it's giving error. Does anyone know how to fix?

  2. #2
    You have to release the canvas after drawing the text.
    Code:
    DXDraw1.Surface.Draw(0, 0, 'Hello world');
    DXDraw1.surface.Canvas.release;

  3. #3

    Wink

    I want to create a layer that facilitates the programming even more. I need to create an object TBlock. That can create text inside it and change the background color.

Tags for this Thread

Posting Permissions

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