home *** CD-ROM | disk | FTP | other *** search
- *****************************************************************
- * * 09/92 POPUP1.PRG *
- *****************************************************************
- * * Author's Name: Jeb Long *
- * * *
- * * Description: *
- * * Program illustrates use of TXTWIDTH() *
- *****************************************************************
- @ 10,1 SAY ""
- tstart = prtline("Text displays in ","Roman",14,"N",11,1)
- tstart = prtline("Bold","Roman",14,"B",11,tstart)
- tstart = prtline(", ","Roman",14,"N",11,tstart)
- tstart = prtline("Itilacs","Roman",14,"I",11,tstart)
- tstart = prtline(", and","Roman",14,"N",11,tstart)
- tstart = prtline("Bold and Italics","Roman",14,"BI",11,tstart)
- tstart = prtline(".","Roman",14,"N",11,tstart)
- *****************************************************
- * PRTLINE() Displays text in specified font and style
- *****************************************************
- PROCEDURE prtline
- PARAMETER TEXT, tfont, tsize, tstyle, LINE, start
- @ LINE,col() SAY TEXT FONT TFont,tsize STYLE tstyle
- RETURN start + TXTWIDTH(TEXT,tfont, tsize, tstyle)