tomweber
2016-07-02T16:10:09Z
I'm having a problem with iGrid4 activex on Ultra-HD monitors with a resolution of 3840 x 2160.
Unfortunately I don't have a screenshot yet, it was one of my customer's computer.
The rows were like 2 millimeters in height.

Is this automatically fixed in iGrid6, or does it require additional code to make it look as desired?

I have around 60 grids in my application, and I would rather like to buy an update instead of fixing all the grid's row heights manually.

Thank you for a reply.
Igor/10Tec
2016-07-04T08:54:31Z
We are still continuing to enhance iGrid with every new release, and one of the goals of this process is implementing support for the latest version of the OS (Windows 10) and modern hardware configurations including UHD monitors.

One of the improvements related to environments with non-standard DPI setting is the GetOptimalCellHeight method we implemented in iGrid 6. For instance, if you want to have enough room for cell texts, you have to call this method when you initialize iGrid before adding rows this way:

iGrid1.DefaultRowHeight = iGrid1.GetOptimalCellHeight()

Optional parameters of this method allow you to take into account other cell items like cell image, combo box and check box controls (and even the specified number of rows in cell text), for instance:

iGrid1.DefaultRowHeight = iGrid1.GetOptimalCellHeight(btImageList:=1, bComboButton:=True, bCheckVisible:=True)

Unfortunately, in the general case there is no way to set the optimal row height automatically without calling GetOptimalCellHeight explicitly in your code as iGrid may know nothing about cell contents you will be using. However, inserting this method into in the initialization code of your grids is much better than nothing. At least, we do this for all forms in the iGrid main VB6 demo and the sets of MS Office VBA examples, and it seems this works good enough.

*****

I want you to know that there is another problem related to developing apps that support Ultra-HD monitors. You as a developer must decide what policy related to support for UHD monitors you will use in your app. To find out more, you can read the following excellent article on MSDN:

Writing DPI-Aware Desktop and Win32 Applications 

If your app is system- or even per-monitor-DPI-aware, you may need to provide special contents that look good on UHD monitors. For instance, in the case of iGrid, this includes cell images. iGrid does not scale up the images you put into iGrid cells, and you need to provide special high-resolution bitmaps so your grids will look good on 4K displays. Other points to consider are indents between cell items, fonts that look crisp on UHD monitors, etc.

This is a very wide topic, and I would be glad to continue this discussion in this thread or in our private email correspondence. If you (or other developers reading this post) could help us to test new builds of iGrid on Ultra-HD monitors, you are always welcome to do that.