Strange behavior in CustomEdit controls embedded in a TwwDBGrid . . .
We've been in the process of migrating an application developed in Delphi 5 with InfoPower 3K to Delphi 10, InfoPower 4K. At least a couple of CustomEdit controls in a TwwDBGrid control flicker and spike CPU usage at certain junctures in the migrated code, often in association with the creation of new records. The code in the Delphi 5 version of the project behaves, as always, reasonably.
The grid's CustomEdit controls where I've detected the behavior are a TwwDBLookupCombo and a TwwDBComboBox. Has anyone else encountered this sort of problem?
-
Sorry, I missed your message earlier. We are not aware of flickering problems and cpu spikeage in our current versions. Delphi 10 is a little older so it is possible. I recall a problem with Rio where doublebuffered for the grid needed to be set to false to avoid flicker. Could this be your issue?
-
OK . . . your suggestion does seem to have some bearing on the matter. But kind of in the opposite direction: it seems the DoubleBuffered property for the grid had never been set to True (seems not to have been a published property in Delphi 5), and wasn't set to True for the migrated code; however, now that I've set the grid's DoubleBuffered property to True in the migrated code, I'm not seeing the flickering or CPU spiking (not so far anyway). If that's all there is to the fix, I won't look a gift horse in the mouth - but I am a little curious why it should be an issue.
Please sign in to leave a comment.
Comments
5 comments