Displaying Strings in Virtual Buffers

The fg_print() function can display strings in either the client area or the active virtual buffer. After calling fg_vbinit(), you can direct strings to the active virtual buffer by passing the fg_getdc() return value to fg_fontdc(), as shown here:

C/C++:

fg_fontdc(fg_getdc());

Delphi:

fg_fontdc(fg_getdc);

Visual Basic:

Call fg_fontdc(fg_getdc())

This technique works only for virtual buffers created with fg_vballoc(); you cannot display strings in virtual buffers created with fg_vbdefine(). Passing fg_fontdc() the device context handle originally passed to fg_setdc() restores string output to the client area.

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.