Sign in Join

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

Mailing lists / lazarus / 2002-10

Does LMEraseBkgnd message work?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Tony Maro

I'm trying to use:

procedure TFrmAbout.LMEraseBkgnd(var message: TLMEraseBkgnd);
begin
  Message.Result := 0;
end;

to prevent the window from automatically blanking the background (for forms I'm drawing myself) and it doesn't seem to work. You still get the cool gray flicker of the form.

Thanks,
Tony

Reply by email

Andrew Johnson
to Tony Maro
Tony Maro wrote 13 lines
I'm trying to use: procedure TFrmAbout.LMEraseBkgnd(var message: TLMEraseBkgnd); begin Message.Result := 0; end; to prevent the window from automatically blanking the background (for forms I'm drawing myself) and it doesn't seem to work. You still get the cool gray flicker of the form. Thanks, Tony

This is probably GTK.

GTK Paint Background -> LCL paints background -> you paint background.

We can stop LCL, like you are trying to, at least, I think it should work. I will have to double check. But I do not know of a way of stopping the GTK paint background. If double buffering were enabled you probably wouldn't even notice it but since it isn't...

Andrew

Reply by email