Platform SDK: DirectX

DirectDrawSurface7.DrawText

The DirectDrawSurface7.DrawText method draws text on the surface.

object.DrawText( _ 
    x As Long, _ 
    y As Long, _ 
    text As String, _ 
    b As Boolean)

Parameters

object
Object expression that resolves to a DirectDrawSurface7 object.
x, y
Location on the surface to draw text.
text
Text to display.
b
Boolean value indicating whether to draw to the current cursor position. See Remarks.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

To append text to the end of the last call to DirectDrawSurface7.DrawText, pass 0,0 as the x- and y-coordinates, and declare b as True. If you declare b as False, calling this method causes text to be displayed at the specified x- and y-coordinates.