Re: Win32lib additions [2]

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

----- Original Message -----
From: <euman at bellsouth.net>
To: "EUforum" <EUforum at topica.com>
Subject: Win32lib additions [2]



Hello again Derek,

Could you also add this to Win32lib?

global procedure Lineto(atom hdc, integer x1, integer y1, integer x2,
integer y2)
object junk
  junk = w32Func(xMoveToEx, {hdc, x1, y1, NULL})
  junk = w32Func(xLineTo, {hdc, x2, y2})
end procedure

Euman

---------
Derek replies...

What's wrong with the already existing drawLine(). It is defined as ...

  global procedure drawLine(integer id, integer x1, integer y1, integer x2,
integer y2)

the only difference is that it uses the ID rather than the DC. The
philosophy of win32lib is to provide a user interface that references IDs.
If you need DC usage then you'd be better off writing your own routines.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu