the problem that I'm facing is that when I'm changing the values of DPI in personalization->display->custom dpi to a value greater or equal with 110%, my label are not fully visibile any more. I'm setting the height and width of the label via .setLayoutData(). When the dpi values are back to normal, this problem never show up. My operating system: Windows 7 x64, SWT libraries: swt-4.3-win32-win32-x86.zip. Eclipse IDE version: Eclipse RCP Kepler, Java: 1.6
This is how I am setting the layout data of my label
public GridData buildENodeBTopLabelGridData() {
eNBTopLabelGridData = new GridData(SWT.FILL, SWT.FILL, true, true);
eNBTopLabelGridData.heightHint = 17;
eNBTopLabelGridData.widthHint = 200;
return eNBTopLabelGridData;
}
And this is how my widgets look before I change the DPI (default values -> 100%) http://img194.imageshack.us/img194/3134/e26e.png And this is how my widgets are looking at a greater value of DPI (110% in this case) http://imageshack.us/photo/my-images/89/1o2t.png/
Sorry if I've made mistakes regarding the place where to ask a question or the format of my question. Thanks in advance!
Layout
. Read this if you haven't already: Understanding Layouts in SWT. – Submerse