home *** CD-ROM | disk | FTP | other *** search
- ****************************************************************************
- * LINEPAT.PRG
- *
- * Line pattern demo program.
- ****************************************************************************
- *
- * Include PGL.PRG
- *
- SET PROCEDURE TO PGL
- DO PGLINIT
- *
- PUBLIC linestyle[9]
- PUBLIC j, ierr, y, maxx
-
- **************************************************************************
- * - MAIN PROCEDURE
- **************************************************************************
-
- linestyle[1]= 'SOLID LINE'
- linestyle[2]= 'HUGE DASH LINE'
- linestyle[3]= 'LARGE DASH LINE'
- linestyle[4]= 'MEDIUM DASH LINE'
- linestyle[5]= 'SMALL DASH LINE'
- linestyle[6]= 'WIDE DOT LINE'
- linestyle[7]= 'CLOSE DOT LINE'
- linestyle[8]= 'DASH DOT LINE'
- linestyle[9]= 'CENTER LINE'
-
- *
- * Open A Drawing File
- *
- pgINIT( 'linepat.plt' , 2000, 2000, @ierr )
- if ierr <> 0
- ? "error opening drawing file!"
- return
- end if
-
-
- pgSTStyle( pgTRIPLEX )
- pgSTJust( pgCENTER, pgTOP )
- pgSCHARSP( 3 )
- pgSTScale( 2, 1, 2, 1 )
- pgSColor( 15 )
-
- maxx = pgGmaxx()
- pgSTJust( pgLEFT, pgBOTTOM )
- pgSColor( 1 )
-
-
- y = 200
- for j = 1 TO 9
- ? linestyle[j]
- pgSLStyle( j-1, 1 )
- pgSLWgt( 50 )
- pgLin( 0, y, maxx / 2, y )
- pgDTXY( maxx / 2 + 100, y, linestyle[j] )
- y = y + 200
- next
-
- *
- * Close The Drawing File.
- *
- pgEND()
- *
- * - END MAIN PROCEDURE
- *