photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: frlindla on August 01, 2021, 10:01:58 AM

Title: Not all of the text visible-keyword panel
Post by: frlindla on August 01, 2021, 10:01:58 AM
Take a look at the attachment. This happens in the keyword panel. What can I do to make all text visible in full size?
Title: Re: Not all of the text visible-keyword panel
Post by: Mario on August 01, 2021, 10:23:11 AM
This font size looks huge. Strange.
This is a normal Windows list box, it should automatically adapt to whatever system font size is used.
Don't recall having seen something like this before.

Which DPI settings do you use for your system (the "Scale and layout" in the Display settings in Windows).
Which display width/height?
Title: Re: Not all of the text visible-keyword panel
Post by: frlindla on August 01, 2021, 04:34:56 PM
I have two screens/displays.

One 4K: 3840x2160 (scale 200%)
One other: 1920x1200 (scale 100%)

The keyword panel is on the 1920x1200 screen.

I can increase the font size, but the font size in the picture I sent (were suggestions show up when you start to write) does not show all the text or the text is shown in full size but is very small.

Title: Re: Not all of the text visible-keyword panel
Post by: Mario on August 01, 2021, 05:03:24 PM
QuoteI can increase the font size

How? Where?

Quoteor the text is shown in full size but is very small.

When is the text shown in full size? When is it shown very small?
I cannot really follow, sorry.

This looks like the list box calculates the text height wrong, for some reason.
I've checked the code but it looks OK. It calculates the height based on the font used by the list box, using built-in Windows routines. It should "just work".
Do you have problems with list boxes elsewhere in IMatch? Filter panel? File Window search bar?
Title: Re: Not all of the text visible-keyword panel
Post by: frlindla on August 01, 2021, 06:14:55 PM
I can increase the font size from the settings in the keyword panel. That seems to increase the font size in the window with the recent keywords (see attachment).

After increasing font size and trying to write in the box with text "Enter new keywords here", the text I write does not show full height of the letters and the suggestions below is with very small font, but full height (can see the full height of the letters).

Title: Re: Not all of the text visible-keyword panel
Post by: frlindla on August 01, 2021, 06:52:45 PM
I have no problem with this elsewhere in Imatch. Could this issue be related to the fact that my screens have different resolution?
Title: Re: Not all of the text visible-keyword panel
Post by: Mario on August 01, 2021, 06:53:18 PM
I think I could reproduce this by forcing the font size to become very large (like, 10 times using "Increase").
This somehow messed up the automatic "item height" calculation of the Windows list box control used. And, strangely, also for the edit control. But that might be due to the dialog base units mess in Windows...

Anyway, I now calculate the item height for each item manually and also for the editor. And it looks OK on my system now, even for very large font sizes:

(https://www.photools.com/community/index.php?action=dlattach;topic=11544.0;attach=27569;image)

(https://www.photools.com/community/index.php?action=dlattach;topic=11544.0;attach=27571;image)
Title: Re: Not all of the text visible-keyword panel
Post by: frlindla on August 01, 2021, 07:45:35 PM
"Anyway, I now calculate the item height for each item manually and also for the editor"

How did you do this? Somewhere in Imatch or a windows setting?
Title: Re: Not all of the text visible-keyword panel
Post by: Mario on August 01, 2021, 08:26:44 PM
In IMatch.
Title: Re: Not all of the text visible-keyword panel
Post by: frlindla on August 02, 2021, 10:36:00 AM
Could you please tell me where in Imatch you found the setting to adjust this? ;)
Title: Re: Not all of the text visible-keyword panel
Post by: Mario on August 02, 2021, 10:48:11 AM
This is not something you can change. This is something I did in the code for IMatch 2021.
I could only reproduce the effect you are seeing by using the "increase font" more than 10 times - so I think this is not something other users will ever experience.
Title: Re: Not all of the text visible-keyword panel
Post by: frlindla on August 02, 2021, 11:19:30 AM
Thank you:) Then this will be solved in Imatch 2021:) Thanks!
Title: Re: Not all of the text visible-keyword panel
Post by: Mario on August 02, 2021, 11:28:51 AM
I hope so. If not, let me know.