Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>tabbedtextout()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TabbedTextOut()
Output a tabbed string at a specified position
------------------------------------------------------------------------------

Syntax
TabbedTextOut( <hDC>, <nX>, <nY>, <cStr>, [ <aTabs> ] , <nTabX> )
             -->   nWandH

Arguments
<hDC> specifies the device context for a printer or a window.

<nX>, <nY> specify the starting position to output the string
in pixels.

<cStr> is the string to be output.

<aTabs> optionally specifies the position of tab stops.  The
default is to use tabs set at 8 times the width of the average
character (for the font currently selected into <hDC>).  If
<aTabs> contains only one element, it is used as the width of
all tabs.

<nTabX> specifies the x position of the logical start of the line.

Returns
A numeric value containing both the width and height of the
string relative to the font currently selected in the
specified device context.  The width can be extracted by the
C4W_LoWord() function, and the height can be extracted by
C4W_HiWord().  NIL is returned if an error is detected.

Description
This function can be used instead of QOUT(), QQOUT() etc. to
output a character string to a window (or printer), using any
font supported by the device.

Example
TabbedTextOut( hDC, 100, 100, "Just Testing", { 40 }, 0 )

See Also: DrawText() GetDC() ReleaseDC()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson