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:





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 >>

Fastgraph Home Page


copyright 2001 Ted Gruber Software, Inc.