Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 75003 - SWT Combo widget truncation in Korean
Summary: SWT Combo widget truncation in Korean
Status: RESOLVED DUPLICATE of bug 89378
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Felipe Heidrich CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 73947 75121 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-24 19:00 EDT by hollisc CLA
Modified: 2005-04-08 17:23 EDT (History)
2 users (show)

See Also:


Attachments
screen capture showing trancation problem in Korean (57.09 KB, image/gif)
2004-09-28 08:45 EDT, Kit Lo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description hollisc CLA 2004-09-24 19:00:14 EDT
The layout for the SWT combo widget is set to take up as much space as required 
but its a few pixels short in some languages like Korean.  

Code is as follows -

Combo combo = new Combo(comp, SWT.DROP_DOWN | SWT.READ_ONLY);
combo.setItems(...);
combo.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END | 
GridData.GRAB_HORIZONTAL | GridData.VERTICAL_ALIGN_CENTER));
Comment 1 Felipe Heidrich CLA 2004-09-27 13:12:23 EDT
Could you attach a screenshot, some korean text (Java literal quoted, you can 
use http://www.snible.org/java2/uni2java.html for that), and the font set in 
the combo (add a "System.out.println (combo.getFont().getFontData() [0]);" to 
your code and paste here the result).

Thanks.
Comment 2 Grant Gayed CLA 2004-09-28 08:19:40 EDT
*** Bug 75121 has been marked as a duplicate of this bug. ***
Comment 3 Kit Lo CLA 2004-09-28 08:45:59 EDT
Created attachment 14831 [details]
screen capture showing trancation problem in Korean

Here is my screen capture fo 75121.
Comment 4 Felipe Heidrich CLA 2004-09-28 12:55:15 EDT
Worked fine on my machine, plese modify the snippet so that it shows the 
problem:

public static void main(String[] args) {
	Display display = new Display();
	Shell shell = new Shell(display);
	shell.setSize(200, 200);
	final Combo combo = new Combo(shell, SWT.DROP_DOWN | SWT.READ_ONLY);
	String[] items = {	
	"\u3154\u3150\u3137\u3141\u3139\u3137",
	"\u3141\u3142\uADDC\uCE04\u3163\u3154",
	"\u3141\u313B\u3134\u3147\uB7B4\u3155\u3150\u3154\u3142"
	};
	combo.setItems(items);
	combo.select(0);
	combo.pack();
	shell.open();
	while (!shell.isDisposed())
		if (!display.readAndDispatch())
			display.sleep();
	display.dispose();
}
Comment 5 Kit Lo CLA 2004-09-28 13:09:23 EDT
Our TVT tester reported that this only happens on a native Korean Windows 
machine, not Windows + MUI. Are you using Windows + MUI?
Comment 6 Felipe Heidrich CLA 2004-09-28 14:07:45 EDT
Yes, I don't think we have a windows korean machine in ottawa lab.

Comment 7 Wassim Melhem CLA 2004-09-29 12:19:50 EDT
*** Bug 73947 has been marked as a duplicate of this bug. ***
Comment 8 Grant Gayed CLA 2004-09-30 13:30:33 EDT
*** Bug 75121 has been marked as a duplicate of this bug. ***
Comment 9 Felipe Heidrich CLA 2005-04-08 17:23:29 EDT

*** This bug has been marked as a duplicate of 89378 ***