Have a Question?
Print

00745: Sample Program Using Plottext and Pwindow to Change Font on Printed line

Title:

Sample Program Using Plottext and Pwindow to Change Font on Printed line

Description:

0010 REM PROGRAM SHOWING USE OF PLOTTEXT TO VARY FONT AND COORDINATES OF TEXT 
0020 OPEN (1)”X0″ 
0030 PRINT (1)’WINDOW'(50,50,800,800,””,$01$) 
0040 PRINT (1)’TRACK'(0) 
0050 REM Turn size tracking off. In this mode, the size of drawn items never changes when the window is resized. 
0060 PRINT (1)’DRAWUNITS'(1) 
0070 REM Sets the units in which to draw subsequent objects in the current context. 1=thousandths of an inch 
0080 PRINT (1)’WORLD'(0,0,8000,10540) 
0090 REM The ‘WORLD’ mnemonic establishes the scaling and limits of the drawing surface.
0091 REM All drawing commands are supplied with world coordinates, which are then mapped onto the virtual drawing surface. 
0100 PRINT (1)’VIRTUAL'(0,0,8000,10540) 
0110 REM The ‘VIRTUAL’ mnemonic establishes the scaling and limits of the drawing surface. 
0120 PRINT (1)’CLEAR'(255,255,255) 
0130 PRINT (1)’OPAQUE'(0) 
0140 REM Transparent, not scaled 
0160 PRINT (1)’FONT'(0,”Courier New”,10,10) 
0170 REM ‘FONT’ changes the font family, size and/or style of the SYSGUI window drawing surface when used with id=0. 
0180 PRINT (1)’PLOTTEXT'(1000,1000,”This is courier text”) 
0190 PRINT (1)’FONT'(0,”Arial”,14,16) 
0200 PRINT (1)’PLOTTEXT'(4000,1000,”This is Arial text”) 
0210 REM Plots text starting with the base of the first letter at x,y and proceeds to the right. 
0220 PRINT (1)’PWINDOW’ 
0230 ESCAPE 



Last Modified: 03/09/2000 Product: Visual PRO/5 Operating System: Windows

BASIS structures five components of their technology into the BBx Generations.

Table of Contents
Scroll to Top