Çağatay KAYA
Çağatay KAYA

Reputation: 99

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

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.

Upvotes: 1

Views: 210

Answers (1)

Çağatay KAYA
Çağatay KAYA

Reputation: 99

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.

Upvotes: 1

Related Questions