Search found 2 matches
- Fri Dec 13, 2019 3:28 pm
- Forum: VCL / FMX
- Topic: onPaint event high cpu usage [resolved]
- Replies: 1
- Views: 25287
Re: onPaint event high cpu usage
Never mind. The key concept here is to instantiate the special text format, not make a reference. Here is the solution: procedure TForm1.FormShow(Sender: TObject); begin MyData:= TStringsData.Create(3, 5); // 3 columns, 5 rows grid.Data:= MyData; formatBold := TTextFormat.Create(nil); formatBold.Fon...
- Fri Dec 13, 2019 2:28 am
- Forum: VCL / FMX
- Topic: onPaint event high cpu usage [resolved]
- Replies: 1
- Views: 25287
onPaint event high cpu usage [resolved]
Hello, I have a client application that needs to have cell-specific text formatting (e.g., bold, font colour, background). I am using the OnPaint event, but notice that the event is continuously firing and taking up high cpu usage. I tried both settings for DoubleBuffered and that did not resolve th...