Subject Re: [IBO] GSG036. IB_Query: DisplayWidth
Author Jason Wharton
That sounds like a good approach to solving this issue. I'd be curious to
see how this may come together. Though I am not going to make it a priority
to do it myself I will consider merging the efforts of a contributor on
this.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com

-- We may not have it all together --
-- But together we have it all --


----- Original Message -----
From: "Marco Menardi" <mmenaz@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, October 09, 2002 10:20 AM
Subject: Re: [IBO] GSG036. IB_Query: DisplayWidth


> --- In IBObjects@y..., "Jason Wharton" <jwharton@i...> wrote:
> CUT
> > > 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 ;)
> thanks
> Marco Menardi