Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-06

Fillrect in Windows and other OS

6 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Zaher Dirkey

Hi,
If i use
Canvas.FillRect(R);
In Windows it fill the rectangle exclude the last pixel the Right and Bottom in that rectangle, is that same in other widgets of OSs.

Thanks in advanced

Zaher Dirkey

Reply by email

Vincent Snijders
to Zaher Dirkey
Zaher Dirkey wrote 5 lines
Hi, If i use Canvas.FillRect(R); In Windows it fill the rectangle exclude the last pixel the Right and Bottom in that rectangle, is that same in other widgets of OSs.

Yes, at least it should be the same. In the last year a couple of widget sets interfaces have been fixed to do so. Maybe one is still having a bug.

Vincent

Reply by email

Zaher Dirkey
to Paul Ishenin

Is there to ask canvas to fill the whale Rect include that pixels without expand the rect, the problem happing when try to flip drawing control from Right to Left execluded pixels apeared not painted when Right To Left order rects.

In fact i can make my own FillRect inside the control i worked on it, just i like to ask :)

Thanks

Zaher Dirkey

Reply by email

Felipe Monteiro de Carvalho
to Zaher Dirkey: If i use Canvas.FillRect(R); In Windows it fill the rectangle exclude the last pixel the…
Zaher Dirkey wrote
If i use Canvas.FillRect(R); In Windows it fill the rectangle exclude the last pixel the Right and Bottom in that rectangle, is that same in other widgets of OSs.

Yes, it's exactly the same in all Operating Systems if you use the latest 0.9.27. Previous versions may have bugs. I don't remember exactly in which version this was fixed.

Felipe Monteiro de Carvalho

Reply by email