Objective Grid: Column header text too large when zoomed.

Article ID: 327
Last updated: 11 Jun, 2018
Article ID: 327
Last updated: 11 Jun, 2018
Revision: 3
Views: 1857
Posted: 19 Jan, 2001
by Meltreger B.
Updated: 11 Jun, 2018
by Meltreger B.

Problem


have a column header full of text. When I zoom in the text no longer fits in the cell. What can I do? Resizing the columns and rows is out of the question as it takes too long. Why is the text sized up more than the cell itself?


Cause


It's because the Zoom() function only changes the standard font of the grid (it scales the font). The cell width and height is depending on the font metrics of the standard font (see GetFontMetrics() function and GetColWidth() and GetRowHeight()).

Unfortunately, the font metrics will not scale exactly with the zoom factor and therefore sometimes the text will no longer fit in the cell.


Action


There is no way to get around this.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 327
Last updated: 11 Jun, 2018
Revision: 3
Views: 1857
Posted: 19 Jan, 2001 by Meltreger B.
Updated: 11 Jun, 2018 by Meltreger B.

Others in this category