Re: Win32Lib v0.44e
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Nov 15, 1999
- 514 views
Irv Mullins wrote: > 1. setMousePointer takes two params, but > the first one can apparently be any window > at random, it works regardless. The first parameter is *supposed* to specify what control/window the pointer is to be associated with. I'll look into this. > 2. Do you know a way to change the printer > font _within_ a page? (so as to print portions > in boldface, etc) You /should/ be able to use setFont(), i.e. (untested code snippet follows) integer line sequence size -- write the first line line = 0 setFont( Printer, "Arial", 10, Normal ) wPosition( 10, line ) wPuts( Printer, "This is Arial, 10 points ) -- move down one line size = getFontSize( Printer ) line += size[2] -- write the second line setFont( Printer, "Arial", 10, Bold ) wPosition( 10, line ) wPuts( Printer, "This is Arial, 10 points bold" ) -- move down one line size = getFontSize( Printer ) line += size[2] setFont( Printer, "Arial", 10, Italic ) wPosition( 10, line ) wPuts( Printer, "This is Arial, 10 points italic" ) Hope this works! -- David Cuny