Hi, I had the same problem once, and what you have to do is the following.
Set the numericTableItem to customTableItem. In the drawing routine do the
following:

...
     for (i = 0; i < StrLen(Factura.Saldo); i++)
      iWidth += TxtCharWidth(Factura.Saldo[i]);

WinDrawChars(Factura.Saldo, StrLen(Factura.Saldo), bounds->topLeft.x +
(COL_WIDTH_TOTAL - iWidth), bounds->topLeft.y);
...

-----Mensaje original-----
De: priyesh parikh <[EMAIL PROTECTED]>
Para: Palm Developer Forum <[EMAIL PROTECTED]>
Fecha: Lunes, 12 de Febrero de 2001 08:09 a.m.
Asunto: How to display numeric data in the right alignment in the Table


>Hello everybody.
>
>I have a table with three column. All the column are
>of custom type.
>My second column is of numeric type.
>Now i want to display the numeric data in the right
>alighment format.
>
>I have try to add spaces before actual value to align
>right but it does not work properly because the width
>of space is less then numbers.
>
>How can i do this?
>
>Thanks,
>
>priyesh
>
>
>__________________________________________________
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail - only $35
>a year!  http://personal.mail.yahoo.com/
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to