Hopefully y'all are reading this with a fixed-width font...

First, alternating row colors is non-standard, and, IMO, every example I
have seen to date is extremely fugly (puke-green colors, etc.)  If you do,
do it in a very light (a la #ccc) grey color.  This also works for
backwards-compatability with 16-grey devices. ;)

As for the borders between cells - not much I've ever found that could fix
that.  It came to the point that I replaced my multiple-column table with a
single column.  That not only allowed for solid background colors, but also
allowed for perfect spacing of the contents, as so:

        |Hello world, this is...|  1.2MB|
        |This is a shorter...   |125.9KB|

The above uses two columns, however, using one:

        |Hello world, this is a... 1.2MB|
        |This is a shorter...    125.9KB|

The extra space is very, very useful, and there are no headaches when
attempting to support wide screens.

So, in the end, unless you have inline editing, checkboxes, or other
non-custom-drawn controls in your table, try to use one column.
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Eddie
Gomez
Sent: Friday, May 21, 2004 12:52 AM
To: Palm Developer Forum
Subject: Alternate shading of table rows

For better readability, I am alternating the table row color.  The only
issue is that the columns are filled completely with the color but there is
a 1 pixel column border between each cell that is not being filled in.  So
while the row does get filled properly, the borders separating each column
is not being colored.

Any ideas?

Here is the entire code in my customDrawProcedure:

==================

 IndexedColorType aquaIndex;
 RGBColorType  rgbColorAqua;

 rgbColorAqua.r = 128;
 rgbColorAqua.g = 255;
 rgbColorAqua.b = 255;

 aquaIndex = WinRGBToIndex(&rgbColorAqua);

 if (row%2==0) WinSetBackColor(aquaIndex);  else WinSetBackColor(0);

 WinEraseRectangle(bounds,0);

================

Any sage advice is greatly appreciated.

Eddie



--
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/

Reply via email to