Re: Win32Lib v0.44e

new topic     » goto parent     » topic index » view thread      » older message » newer message

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! smile

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu