A number of the parameters can be used to override the basic settings of the object. This provides a quick and easy way to temporarily set values for one particular operation.

For instance if you had been drawing text in 12 point Times (your default style) and just wanted to do one piece of drawing in 10 point Arial you might write code like the following.

[VBScript]
DrawText "12 Point Times", "Pos=0,0"
DrawText "10 Point Arial", "Pos=0,30 TextFont=Arial TextSize=10"
DrawText "12 Point Courier", "Pos=0,60 TextFont='Courier New'"

 

   
1
 
PenColor    
     

Used to override the Canvas PenColor property.


   
2
 
TextColor    
     

Used to override the Canvas TextColor property.

 

   
3
 
PaintColor    
     

Used to override the Canvas PaintColor property.

 

   
4
 
PenSize    
     

Used to override the Canvas PenSize property.

 

   
5
 
TextCharset    
     

Used to override the Canvas TextCharset property.

 

   
6
 
TextFont    
     

Used to override the Canvas TextFont property.

 

   
7
 
TextSize    
     

Used to override the Canvas TextSize property.

 

   
8
 
TextStyle    
     

Used to override the Canvas TextStyle property.

 

   
9
 
HAlign    
     

Used to override the Canvas HAlign property.

 

   
10
 
VAlign    
     

Used to override the Canvas VAlign property.

 

   
11
 
Dither    
     

Used to override the Canvas Dither property.