DonM
  • DonM
  • Newbie Topic Starter
2025-01-31T16:36:55Z
I have the control set to 36x36 grid so no scroll bars are needed.
It displays fine on a couple PCs, but when the app is installed on one user's PC
the cells get compacted into upper left corner as tiny squares.

regular.jpg

Click to View Image161 View(s)

small.jpg

Click to View Image157 View(s)



Is there a 'fit' property or method that will evenly distribute the cell heights and widths across the control
regardless of monitor?
Igor/10Tec
2025-02-03T07:12:52Z
Most likely, the first screenshot was taken on a display with the normal pixel density (96 dpi) and the second on a display with a high pixel density (192 dpi). If so, then you need to recalculate the column widths and row heights set in pixels depending on the pixel density of the current monitor and set them in the form's initialization code to have equal pictures.

As for iGrid members that could help you, you can try to harness the LayoutCol property of iGrid to solve your problem for columns. For example, you can generate the layout string for your columns on 96 dpi and then restore this string in the form initialization event. The LayoutCol property will take into account the current dpi and recalculate the column widths if required. However, there may be some rounding errors, so the most reliable way is to calculate the column widths exactly as you need them.

As for row heights, there is no iGrid member that could help you the same way.