Subject Re: [IBO] GSG036. IB_Query: DisplayWidth
Author Marco Menardi
--- In IBObjects@y..., "Jason Wharton" <jwharton@i...> wrote:
> > What happens if a user uses larger fonts?
> Not entirely sure.

I use trueType Arial 10 on my forms, and I've problems with column width, since my font is larger than the one calculated by IBO when calculates automatically column width of the grid, so very often the glyph of the ordering column is hide, or the column name is trimmed. I need to fix this, sooner or later, but I think you have to tell the right direction... This particular probem can be avoided since in the width calculation, as far as I remember, there are some constant values (i.e. 100) used for minimal/additiona space, that are compatible only with the default form font. This could be translated in a sort of "characters margin" and pixels recalculated based upon actual font.
But for explicit column width, since it's in pixel, it can't be avoid this way. Can we suppose it's for a MS Sans Serif 8 font and add a property that let IBO recalculate the ration for the actual font?
Let me know what do you think about this, Jason or other (Geoff could provide good input too ;)
Marco Menardi