Re: line size of the listview
- Posted by SergioGelli May 13, 2010
- 1680 views
size=getFontSize ( ListViewInQuestion) Don Cole
ok, size[2]+1 gives the height of each line, but I'm confused, check this out:
When I turn on the machine and the road program for the first time, the getFontSize() return size[2] = 16 and the real heigth of line is 17 In another machine, getFontSize() return size[2]=20, but the real line size = 21 O.K...Just increase +1 solves the problem.
But if the program uses setFont() in any future proceedings, the return is not the same.
In my system, getFontSize return size[2] = 13 But, the real heigth is 17
And the code below, still leaves me a bit confused
- euCode
setFont( ListViewInQuestion,"MS Sans Serif",30,Normal)
size=getFontSize ( ListViewInQuestion )
In this case getFontSize() return size[2] = 30, but on screen, the line height remains the same: heith=17.
Maybe I should make the code with some instructions to stabilize the return of function gerFontSize(). But I do not know how. Any suggestions?