How do I get rid of form flicker when FormStyle is bsNone in Delphi?

153 views Asked by At

Even "DoubleBuffered" property is True, when I restore minimized form, my form flickers.

But this issue occurs only if "BorderStyle" property is bsNone.

Any type of "BorderStyle" besides "bsNone" fixes my problem.

So, how can I prevent form flicker when I use "bsNone"?

PS: I minimize my form with my custom button which executes Application.Minimize command.

1

There are 1 answers

0
Çağatay KAYA On

I have fixed my problem.

Here is what I do:

  1. I have enabled "TransparentColor" property.
  2. Then I have set "TransparentColorValue" value to "clBackground".

Also I have removed the panel which I used it as the titlebar. Instead of that, I have inserted TTitleBarPanel to my form.

PS: I use C++ and Delphi as front-end languages; C++, JavaScript as back-end languages.