fg_print()

Win32 DirectX Fastgraph/Light

Prototype

void fg_print (char *string, int n);

Sub fg_print (ByVal string As String, ByVal n As Long)

procedure fg_print (string : string; n : integer);

Description

The fg_print() function displays a character string relative to the current graphics position using the current color. The characters are clipped at the client area or virtual buffer edges, not the area defined with fg_setclip(). By default, strings are displayed such that the bottom row of the first character is at the current graphics position. On return, the graphics cursor is positioned just to the right of the last character displayed.

By default, fg_print() displays strings directly in the window's client area, but strings can be redirected to the active virtual buffer with fg_fontdc().

Parameters

string is the sequence of characters to display.

n is the number of characters to display from string.

Return value

none

Restrictions

You cannot direct strings to virtual buffers created with fg_vbdefine().

See also

fg_fontdc(), fg_fontload(), fg_justify(), fg_logfont()

Examples

Columns, Fontdemo, Strings1, Strings2

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.