Community
Participate
Working Groups
I have created a ViewPart to display a table and inserted few textboxes into the view’s toolbar area. But their widths are not displayed correctly. This happened when I choose “Window Classic Style” in Display Properties. IContributionItem comboCIDone = new ControlContribution("Example") { protected Control createControl(Composite parent) { ToolBar bar = (ToolBar) parent; Label label = new Label(parent, SWT.NONE); label.setBackground(GUIUtil.BLUE); return label; } /* * (non-Javadoc) * @see org.eclipse.jface.action.ControlContribution#computeWidth(org.eclipse.swt.widgets.Control) */ @Override protected int computeWidth(Control control) { return 200; } };
Created attachment 48668 [details] Windows Classic Style
Created attachment 48669 [details] Windows XP Style
I'm guessing this is SWT, but we need to tell them what happens at their level.
Sorry do you have any update on it? We are looking for the answer so that i can find some work around on it.
Assigning to component owner PW
You should not be casting whatever is passed into createControl(*) ... I'm less sure about how you can control the size. Eric? PW
Paul, there's another defect that talks about Windows 'Classic' not sizing correctly (in Combos if my memory still works). Perhaps as you slog through the rest of your defects you (or I...;-) might come across it...
Hello, Any news about this issue? I am facing the exact same problem: using RCP 3.4.1 any ControlContribution is resized very small when switching to Windows classic look&feel. Is there a workaround while waiting for a patch? Thank you, Guilhaume
(In reply to comment #8) > Hello, > > Any news about this issue? > I am facing the exact same problem: > using RCP 3.4.1 any ControlContribution is resized very small when switching to > Windows classic look&feel. > > Is there a workaround while waiting for a patch? > > Thank you, > > Guilhaume > Saying "very small size" means very small width: for a checkbox with a label, the label is truncated and I acn only see the box. Thanks Guilhaume
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009(In reply to comment #8) > > Is there a workaround while waiting for a patch? Sorry, there's no update at this time. Probably the next step would be an SWT snippet that shows the problem on win classic vs XP PW
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.