Wednesday 28 September 2016

TCategoryPanel refresh issue solved

I have a form with a TCategoryPanelGroup on it with several TCategoryPanels, on one of the category panels is a combox and when the user changes a selected value in the combobox it changes a label caption on the same category panel.

One issue I have had is that when I change the caption of the label it does not refresh correctly and it looks like the caption overwrites the previous caption. I tried various refresh, repaint and invalidates on the label, category panel and category panel group, but nothing worked. The only way I've found to solve the issue is to set the 'DoubleBuffered' property of the form to true.

1 comment: