WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Boxes Functions
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Using Courier Font in Boxes

Keywords:   change font courier boxes

Question:

I want to use a courier font when displaying text with BoxText. Can this be done with a winbatch command? If not, how do I temporarily change the system font to courier and then change it back to whatever it was previously?

Answer:

To get a courier font you need the more advanced Box functions. BoxText will not cut it. However...
;; sample script for BoxTextFont
BoxesUp("100,100,900,900", @normal) 
BoxCaption(1, "WinBatch BoxTextFont Example")

f3="Courier New"
fam=16
size=20

BoxTextFont(1, f3, size, 0, fam)
BoxDrawText(1, "100,200,1000,1000", "This is courier font", @False, 0)

Message("All","Doned")

Article ID:   W15114
File Created: 2002:09:05:13:49:44
Last Updated: 2002:09:05:13:49:44