"priyesh parikh" <[EMAIL PROTECTED]> wrote in message
news:39193@palm-dev-forum...
>
> 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.

1) Use FntCharsWidth to find out the width of your numeric string.
2) Use that value to adjust the x coordinate of your WinDrawChars call

For example, if you find out that your string is 15 pixels wide, and your
window runs from x=40 to x=90, then you would start the drawing at x=75,
because 75+15 == 90.

--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>



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