HarleyQuinn
Programmer
Hi,
I'm writing a usercontrol that uses the TrueDBGrid8.0.
The grid's DataMode is Storage and it's populated by an XarrayDB object (which in turn is populated from formatted real-time data)
Everything is fine up to here, data received, formatted and displayed. Then it goes a bit off track.
The usercontrol is basically a custom stock ticker and and by nature can receive updates up to anything around 10 times a second. The data populates in the array fine, but the only way to get the data in the grid is to rebind it and that's not a graphically nice operation.
During it the grid can flicker quite heavily (especially on highlighted cells/rows) and on occasion the scroll bars would be bordering requiring an epilepsy warning.
I'll cut to the crunch, obviously this isn't acceptable. I'm looking for a way to double buffer the control so that I avoid the flickering. I've double buffered images but just can't seem to get my head round doing it with controls. I've lloked all over and not been able to find anything in relation to this (well nothing that I found useful)![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
I've also tried using SendMessage() to disable/re-enable the redraw of the grid and while there was a tiny difference there was nothing to write home about. Also please don't suggest LockWindowUpdate() as the affect that can have on the other windows/desktop in something this liquid is bordering on farcical![[wink] [wink] [wink]](/data/assets/smilies/wink.gif)
Thanks in advance
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
I'm writing a usercontrol that uses the TrueDBGrid8.0.
The grid's DataMode is Storage and it's populated by an XarrayDB object (which in turn is populated from formatted real-time data)
Everything is fine up to here, data received, formatted and displayed. Then it goes a bit off track.
The usercontrol is basically a custom stock ticker and and by nature can receive updates up to anything around 10 times a second. The data populates in the array fine, but the only way to get the data in the grid is to rebind it and that's not a graphically nice operation.
During it the grid can flicker quite heavily (especially on highlighted cells/rows) and on occasion the scroll bars would be bordering requiring an epilepsy warning.
I'll cut to the crunch, obviously this isn't acceptable. I'm looking for a way to double buffer the control so that I avoid the flickering. I've double buffered images but just can't seem to get my head round doing it with controls. I've lloked all over and not been able to find anything in relation to this (well nothing that I found useful)
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
I've also tried using SendMessage() to disable/re-enable the redraw of the grid and while there was a tiny difference there was nothing to write home about. Also please don't suggest LockWindowUpdate() as the affect that can have on the other windows/desktop in something this liquid is bordering on farcical
![[wink] [wink] [wink]](/data/assets/smilies/wink.gif)
Thanks in advance
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.