You ain't going to like this....
I was just trying things out and found everything was ok on my laptop as per your proggy. But neither of my two types of QVGA device displayed properly!
I added a cursor line for an imaginary vertical ruler to your sample proggy. And now I'm seriously baffled. I thought it might be to do with pixel/point conversions, but that doesn't fit the figures I got by measuring things
Look at lines 24-26 of my version of the proggy.
There are a number of fixed things. On the device there are two lines of pixels for both top and bottom borders. But the horizontal grid lines aren't real! They are the bottom line of the row in a different colour! So the bottom row of the table appears to be one pixel taller than the other rows. On the devices the borders are one row of pixels.
The height of the heading, ignoring borders, is sometimes the same as other rows (and why not, the font is the same size in both), but for some font sizes the heading row is smaller, and for others greater! For heavens sake manufactures and/or Microsoft, give us a chance!
The last sentence applies equally well to the actual figures I found, see proggy. How are we supposed to predict these? How can you write generic code when the variations are apparently so random? And just to rub salt into the wound, these odd row heights bear no resemblence to the font size, the text for various of the smaller sizes display perfectly well, but in row heights which also work for larger font sizes, i.e. no correspondence whatsoever.
As I said, I've only got QVGA devices, so I haven't been able to check for any variations in VGA devices, perhaps someone else could do that?
I did wonder if it had anything to do with 2D/3D representation of controls, but probably not. 3D works perfectly well with that form size on the desktop, so why does the device default to 2D? I vaguely remember Windows has a setting for this somewhere, but as I never used it, I can't remember where. Is there a similar setting on the device?
Regards, confused of Fleet!
Comments from anyone welcome.