Hi,
I have a table with 1 column and 3 rows. Before I use the table, I set the
following properties:
o Each cell in the table has it's style set to customTableItem
o The size of the table is set dynamically using TblSetColumnWidth( )
o The column spacing is set to 0 using TblSetColumnSpacing( )
o In my custom draw routine I use WinDrawChars( ) to display text in the
cell.
My problem occurs when the custom draw function is called. It appears that
PalmOS is clipping the text on the right hand side of the cell. I look at
the bounds of the cell inside the custom draw function to verify the size as
I've set programatically. It corresponds to the value set in
TblSetColumnWidth( ). As a test I used WinDrawLine( ) in my custom draw
function to draw a line from the upper left corner of the item to the lower
right corner of the cell. This line gets clipped in the same fashion as
drawing text using WinDrawChars( ).
As a test, in the function that calls TblRedrawTable( ), after the table is
repainted, I use WinDrawLine( ) to draw a line in a cell using physical
screen coordinates of where the first row of the table is located. This line
is drawn from the upper left corner to the lower right corner, just as it
was done in my custom draw function. This line does not get clipped.
Any advice as to why the functions I've used in the custom draw function
fail when it is called upon update of the table vs. when I draw it from the
form code?
Thanks in advance,
Paul Mandrafino
FlyTimer, Corp.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/