Given:
frm, table, row

Try:
RectangleType invRect;
TblGetItemBounds( table, row, myColumn, &invRect );
you can call again to get size of other columns of interest or call
FrmGetObjectBounds( frm, myTableID, &invRect );
and use the entire width of the table
then call 
WinInvertRectangle( &invRect, 0 );

You may also need to defeat the automatic highlighting of the table by
something like:

in the form event handler
case tblSelectEvent:
{
        UInt16          row, col;
        Boolean         selected;
        Boolean         redrawDone;
        Boolean         redrawNeeded = false;

        // Unhighlight any selection if needed.
        tableP = event->data.tblSelect.pTable;
        selected = TblGetSelection( tableP, &row, &col );
        if ( selected ) {
                TblUnhighlightSelection( tableP );
                TblMarkRowInvalid( tableP, event->data.tblSelect.row );
                redrawNeeded = true;
        }
                        
        // handle selecting a table item
        redrawDone = ItemWasSelected( event, redrawNeeded );
        if ( ( redrawNeeded == true )
          && ( redrawDone == false ) ) {
                TblRedrawTable( tableP );
        }

Regards,
Randy Maxwell

-----Original Message-----
From: Brian Mathis [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 03, 2000 9:11 AM
To: Palm Developer Forum
Subject: Highlighting the whole table row


I have been using a table with 2 columns, and would like to make it so
when the user taps on a row, the whole row gets highlighted, not just that
particular cell.  Is there a straightforward way to do this?  I'm just
looking for a visual cue, not actual processing of data on the other
column.

Right now I've got it working with a 1 column table, and just doing a
WinDrawChars to draw both the text in column 1, then just making it
appear as if there's a column 2 but setting the x to a number like 120.

Is there a more elegant solution, or is that it?

-- 
Brian Mathis
Direct Edge
http://www.directedge.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to