programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: drawing a solid line with sharp 90 degree corners

From: Mike Ghan <MikeGhan_at_logix-controls.com>
Date: Wed, 18 Jun 2008 09:36:30 -0700

If you want to try the hard way, I added extended line support to my
simple line drawing demo:

http://www.logix-controls.com/SwiftForth/LineDraw.htm

You'll need to study your friend, the Windows API.

Mike

-----Original Message-----
From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com] On Behalf
Of Rick VanNorman
Sent: Wednesday, June 18, 2008 7:05 AM
To: sftalk_at_forth.com
Subject: [sftalk] Re: drawing a solid line with sharp 90 degree corners

Allen,

The simplest way to do this is to use the api function Rectangle. Set
a brush and pen to the desired colors, and the pen width to 1, and
draw rectangles.

Check the demo program "rectangles.f" for more info.

rick

On Wed, Jun 18, 2008 at 8:47 AM, Allen Anway <allen_at_a2d2.com> wrote:
> Using Mike Gahn's DRAW-LINE command in drawsimple.f one can draw any
line at any angle and any thickness. The line has rounded corners at
the beginning and ending. I am interested in drawing a line with square
corners only horizontally or vertically, not at an arbitrary angle. The
line would have any thickness and be of solid color. The purpose is to
display easily-programmed bar graphs.
> Can anyone help me on this? Best wishes --- Allen Anway
>
> ----------------------------------------------------------------------
> sftalk_at_forth.com The SwiftForth programming discussion email list
> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
> For list command help, send subject "help" to sftalk-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/sftalk
> ----------------------------------------------------------------------
> This list is a forum for SwiftForth users. For product support and
> bug reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------
>
>

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Jun 18 2008 - 09:36:50 PDT

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:44 PST