From: Szabolcs Szasz Date: 2002-10-11T22:08:47+09:00 Subject: Re: [FXRuby] Problems with coordinates and clipping Sounds like correct behavior. Please see the GDI docs. for pixel coordinates etc. Sab ----- Original Message ----- From: "Michael Neumann" <520079130762-0001@t-online.de> To: "ruby-talk ML" Cc: "Lyle Johnson" Sent: Friday, October 11, 2002 3:00 PM Subject: [FXRuby] Problems with coordinates and clipping > Hi, > > Shouldn't the following piece of code show the complete rectangle? > > dc.setClipRectangle(x, y, w, h) > dc.drawRectangle(x, y, w, h) > > The bottom and right borders are missing. Is this behaviour correct? > > In the same way > > dc.foreground = FXRuby::Black > dc.drawRectangle(x, y, w, h) > dc.foreground = FXRuby::Green > dc.fillRectangle(x+1, y+1, w-2, h-2) > > should draw a filled green rectangle with a black border, but does not > unless I modify "w-2" to "w-1" (same for h)! > > Are there any reasons for this behaviour? > > Regards, > > Michael