home *** CD-ROM | disk | FTP | other *** search
- *****************************************************************
- * * 09/92 textdemo.prg *
- *****************************************************************
- * * Author's Name: Jeb Long *
- * * *
- * * Description: *
- * * This program illustrates how to display a line of *
- * * text using different fonts, styles and font size *
- * * the NOWAIT keyword with the ACTIVATE WINDOW command *
- * * and illustrates the use of TXTWIDTH() function *
- *****************************************************************
- tstart = prtline("Text displays in ","Roman",14,"N",10,1)
- tstart = prtline("Bold","Roman",14,"B",10,tstart)
- tstart = prtline(", ","Roman",14,"N",10,tstart)
- tstart = prtline("Itilacs","Roman",14,"I",10,tstart)
- tstart = prtline(", and","Roman",14,"N",10,tstart)
- tstart = prtline("Bold and Italics","Roman",14,"BI",10,tstart)
- tstart = prtline(".","Roman",14,"N",10,tstart)
- ******************************************************************
- * PRTLINE() Displays text in specified font and style
- ******************************************************************
- PROCEDURE prtline
- PARAMETER TEXT, tfont, tsize, tstyle, LINE, start
- @ LINE,start SAY TEXT FONT TFont,tsize STYLE tstyle
- RETURN start + TXTWIDTH(TEXT,tfont, tsize, tstyle)