09-04-2006 12:17 PM
09-05-2006 05:27 AM
I think you are out of luck, here. Although it is generally true that the use of SetCtrlAttribute(...ATTR_CTRL_VAL...) approach is broadly equivalent to SetCtrlVal() and can often be used to improve drawing performance by deferring the screen update until several controls are ready to be drawn, in this partiular case the functions SetTableCellRangeAttribute(...ATTR_CTRL_VAL...) and SetTableCellRangeVal() are not similar enough. As you have already found, the first of these sets all cells in the range to the same value, while the second function allows the range of cells to take on different values as specified in the array parameter to the function.
I suspect that the performance of this second function would not be as degraded as you might expect - it should be able to take full advantage of having a whole bunch of values specified to it in one go and just doing the screen drawing once.
JR
09-05-2006 11:48 AM
09-05-2006 05:21 PM
09-06-2006 04:07 AM
09-06-2006 08:36 AM
09-11-2006 05:26 AM
09-11-2006 11:47 AM