home *** CD-ROM | disk | FTP | other *** search
- ****************************************************************************
- * FILLPAT.PRG
- *
- * Fill pattern demo program.
- ****************************************************************************
- *
- * Include PGL.PRG
- *
- SET PROCEDURE TO PGL
- DO PGLINIT
- *
- PUBLIC fillstyle[12]
- PUBLIC j, ierr, dx
- **************************************************************************
- * - MAIN PROCEDURE
- **************************************************************************
- fillstyle[1]= 'EMPTY FILL'
- fillstyle[2]= 'SOLID FILL'
- fillstyle[3]= 'LINE FILL'
- fillstyle[4]= 'LTSLASH FILL'
- fillstyle[5]= 'SLASH FILL'
- fillstyle[6]= 'BKSLASH FILL'
- fillstyle[7]= 'LTBKSLASH FILL'
- fillstyle[8]= 'HATCH FILL'
- fillstyle[9]= 'XHATCH FILL'
- fillstyle[10]= 'INTERLEAVE FILL'
- fillstyle[11]= 'WIDEDOT FILL'
- fillstyle[12]= 'CLOSEDOT FILL'
-
- *
- * Open A Drawing File
- *
- pgINIT( 'fillpat.plt' , 4000, 3000, @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 )
-
- for j = 1 TO 4
- dx = (j-1) * 1000
- pgSFStyle( j-1, 1 )
- pgRect( 100+dx, 100, 900+dx, 900, pgOFILL )
- pgDTXY( 500+dx, 920, fillstyle[j] )
- next
-
- for j = 5 TO 8
- dx = (j-5) * 1000
- pgSFStyle( j-1, 1 )
- pgRect( 100+dx, 1100, 900+dx, 1900, pgOFILL )
- pgDTXY( 500+dx, 1920, fillstyle[j] )
- next
-
- for j = 9 TO 12
- dx = (j-9) * 1000
- pgSFStyle( j-1, 1 )
- pgRect( 100+dx, 2100, 900+dx, 2900, pgOFILL )
- pgDTXY( 500+dx, 2920, fillstyle[j] )
- next
- *
- * Close The Drawing File.
- *
- pgEND()
- *
- * - END MAIN PROCEDURE
- *