However, on another PC with Windows 7 (also 2011b), I see that the checkboxes overlap. They are not fully displayed. Some trial and error indicates that the size of these checkboxes is 18 pixels. Another difference I noted is that the ScreenPixelsPerInch property of the root object is set to 116. On the Windows XP computer it is set to 96. Could that explain the difference? At http://www.mathworks.com/matlabcentral/newsreader/view_thread/303963 someone has encountered the same difference in DPI setting. I can see that chaning the ScreenPixelsPerInch settings changes the font size and button size. The size of the checkbox seems unaffected. My question: on what is the size of the checkbox control depending? How can I determine how much space I need to fit a number of checkboxes?
Update I'm now starting to wonder if this is something Windows 7 specific. I use the 'outerposition' property to place multiple figures next to each other without overlapping, but also not leaving any space between them. This works fine on Windows XP. However, when looking closely at the figures on my Windows 7 machine, I noticed the borders are larger and overlapping. Does Matlab on Windows 7 draw certain UI elements (e.g. borders, checkboxes) in a different way?
Another Update I think I'm getting closer to a solution. I found that the Windows display setting "text size DPI" has something to do with this. Normally, this settings is set to 100% (96 dpi). This is reflected in the ScreenPixelsPerInch attribute of the root object in Matlab and it gives a checkbox height of 15 pixels. I tried various settings and saw the following:
Windows text size setting - Windows DPI - Matlab DPI - Checkbox size
100
125
150
200
As can be seen, for the 125% setting, Matlab scales nicely. For the 150% setting, the checkbox size is scaled properly (1.5 * 15 ~ 22). However, this is not reflected in the ScreenPixelsPerInch attribute of Matlab, which stays at 116.
Thus, I have an (partial) answer: use only 100 and 125 % settings in Windows. Does anybody know how to detect the large windows DPI settings (>125%)? It seems not detectable by looking at the ScreenPixelsPerInch attribute.