Re: Win32lib additions [2]
- Posted by Derek Parnell <ddparnell at bigpond.com> May 28, 2003
- 362 views
----- 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.