F
Frank
Hello,
I have a form in which I draw a grid in the paint event. Works fine, except
when using the scrollbars.
Autoscroll is switched on, I use doublebuffering and userpaint and
AllPaintingInWmPaint are true.
When using the scrollbars sometimes some lines are not drawn or drawn twice.
The gridlines distort in the scrolled region.
As far as I can tell the clipregion is the whole window, so that can't be
it. Besides, it only goes wrong when sliding the bars, not when I click next
to the bars and the whole windowcontents reposition.
What could be the reason? Is there some setting I have to adjust?
Please advice
Thanks
Frank
I have a form in which I draw a grid in the paint event. Works fine, except
when using the scrollbars.
Autoscroll is switched on, I use doublebuffering and userpaint and
AllPaintingInWmPaint are true.
When using the scrollbars sometimes some lines are not drawn or drawn twice.
The gridlines distort in the scrolled region.
As far as I can tell the clipregion is the whole window, so that can't be
it. Besides, it only goes wrong when sliding the bars, not when I click next
to the bars and the whole windowcontents reposition.
What could be the reason? Is there some setting I have to adjust?
Please advice
Thanks
Frank