3

When I have a few text boxes on a form and set the DoubleBuffered property of the form to True, it makes the text boxes on the form have black dots at each of the corners. Here's what the corners of the text boxes look like without DoubleBuffered on their parent form:

enter image description here

And here's what they look like with DoubleBuffered:

enter image description here

I have already tried setting DoubleBuffered to False on the text boxes themselves, but that doesn't help at all. What can I do to fix this annoyance?

Seth Carnegie
  • 73,875
  • 22
  • 181
  • 249

1 Answers1

0

You could remove DoubleBuffering on the components that do this.

The Form will still be Double Buffered, and the Edit boxes won't show the black corners.

Either from the Object Inspector, or by code:

Form1.DoubleBuffered := True;
Edit1.DoubleBuffered := False;
Edit2.DoubleBuffered := False;
  • Actually the black dots still show up even when the textboxes themselves are not double buffered. – Seth Carnegie Dec 26 '11 at 20:26
  • Yeah I just tried that, sorry I thought it might of worked, I don't understand why that wouldn't work. –  Dec 26 '11 at 20:29
  • DoubleBuffering always seems odd to me, TToolBar goes crazy with DoubleBuffering unless DrawingStyle is set to Gradient. –  Dec 26 '11 at 20:37
  • That's just what happens and is why I never use double buffering – David Heffernan Dec 26 '11 at 21:10
  • @DavidHeffernan I am performing a lot of updates on a control though and it flickers badly if not double buffered. – Seth Carnegie Dec 26 '11 at 21:16
  • 1
    @Seth I typically have problems with flicker when resizing. I deal with them as described here: http://stackoverflow.com/questions/8060672 Perhaps you can find something of use there – David Heffernan Dec 26 '11 at 21:19