You may try to set the DrawProcedure only for one column and redraw all the 4 column in the same time. This way you could reduce tests and initialize time by 4.
-----Message d'origine----- De : Edward P. Ross [mailto:[EMAIL PROTECTED]] Envoy� : mercredi 12 juin 2002 20:28 � : Palm Developer Forum Objet : TblSetCustomDrawProcedure Optimization I have a table with 4 columns, 9 rows. I am using a custom callback routine to draw the items using TblSetCustomDrawProcedure like this: for (i = 0; i < 4; i++){ TblSetColumnSpacing (tableP, i, 0); TblSetCustomDrawProcedure(tableP, i, ListTableDrawItem); TblSetColumnUsable (tableP, i, true); } My callback function, ListTableDrawItem takes a while - meaning that it is noticeable as a flicker effect as the rows and columns are updated. I am looking for the best way or a couple of things that I could do to optimize the display so that the flicker wouldn't happen. Is there something that I could read about or something I should look at specifically? Thanks, Ed. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
