Display multiline in one cell? It shouldn't be too difficult to do with
customTableItem and a custom callback drawing routing. In the drawing routing,
you can do whatever you want. I did left-adjust, right-adjust, etc. I am
pretty sure it is easy to get it draw on multiline. Look at the Fnt and Win
APIs.
Max
--- Rohit_Shankar <[EMAIL PROTECTED]> wrote:
> We are using LabelTabelItem to fill a text in to a Table Cell .
> The Text to be displayed is bit longer so it needs to be wrapped . Right now
> the text move towards the left side of the screen to fit in and most part
> becomes invisible on the left side .
>
> I am unable to find a way to wrap it and display it in a table .
>
>
>
>
>
> typedef struct
> { char Title[40];
> char Value[40];
> } TableData;
>
> TableData td[250];
>
> static void FillDSTable(TableData td[], TableType *tableP)
> { UInt16 row = 0;
> UInt16 rowsInTable;
>
> TblSetColumnUsable(tableP, 0, true);
> TblSetColumnUsable(tableP, 1, true);
> TblSetColumnWidth(tableP, 0, 110);
> TblSetColumnWidth(tableP, 1, 40);
> TblHasScrollBar(tableP,true);
> rowsInTable = TblGetNumberOfRows(tableP);
>
> for (row = 0; row < arrTableDataSize; row++)
> {
> TblSetRowHeight(tableP, row, 20);
> TblSetRowUsable(tableP, row, true);
> TblSetItemStyle(tableP, row, 0, labelTableItem);
> TblSetItemPtr(tableP, row, 0, td[row].Title);
> TblSetItemStyle(tableP, row, 1, labelTableItem);
> TblSetItemPtr(tableP, row, 1, td[row].Value);
> }
> }
>
>
> **************************************************************************
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **************************************************************************
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/