Sign in Join

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

Mailing lists / lazarus / 2013-01

win32 ShowScrollBar triggers immediate paint

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Hi,

ShowScrollBar -> Windows.RedrawWindow

Can some win32 developer explain, why the paint is immediate. Why not queue?

Mattias

Reply by email

Paul Ishenin
to Mattias Gaertner

05.01.13, 19:20, Mattias Gaertner ?????:

Show quoted text 6 lines
Hi, ShowScrollBar -> Windows.RedrawWindow Can some win32 developer explain, why the paint is immediate. Why not queue?

Immediate is not extremely needed but why not to do so? This is done to reduce the time when scrollbars are drawn wrong.

Best regards,
Paul Ishenin

Reply by email

luiz americo pereira camara
to Mattias Gaertner: ShowScrollBar -> Windows.RedrawWindow Can some win32 developer explain, why the paint is…

2013/1/5 Mattias Gaertner :

Show quoted text 6 lines
Hi, ShowScrollBar -> Windows.RedrawWindow Can some win32 developer explain, why the paint is immediate. Why not queue?

Some notes:

Here in windows 7, no wm_paint is called

according to docs:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd162911%28v=vs.85%29.aspx no immediate paint should occur with the used falgs

Luiz

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Paul Ishenin: 05.01.13, 19:20, Mattias Gaertner ?????: Immediate is not extremely needed but why not to…
Show quoted text 9 lines
05.01.13, 19:20, Mattias Gaertner ?????: > Hi, > > ShowScrollBar -> Windows.RedrawWindow > > Can some win32 developer explain, why the paint is immediate. Why not > queue? Immediate is not extremely needed but why not to do so?

Because multiple changes to the scrollbar causes flickering. The same with any change. That's why queued drawing should be the default in all widgetsets.

This is done to reduce the time when scrollbars are drawn wrong.

What is drawing wrong?

Mattias

Reply by email

Paul Ishenin
to Mattias Gaertner

05.01.13, 20:48, Mattias Gaertner ?????:

What is drawing wrong?

For some reason scrollbar had been drawn non-themed before the first repaint. I can't imagine a reason. This was visible in IDE component tree (above object inspector). We also had a bug report somewhere.

Best regards,
Paul Ishenin

Reply by email