Community
Participate
Working Groups
It seems that calling setLocked() too early will have no effect on locking the toolbar. see VI for an example but here is a snippet of code that has this problem final CoolBar coolbar2 = new CoolBar(banner, SWT.FLAT); >>>>>> coolbar2.setLocked(true); coolbar2.setBackground(banner.getDisplay().getSystemColor (SWT.COLOR_WIDGET_BACKGROUND)); CBannerTest.coolBar = coolbar2; banner.setRight(coolbar2); final ToolBar toolBar2 = new ToolBar(coolbar2, SWT.FLAT | SWT.RIGHT | SWT.WRAP); ToolItem toolItem2 = new ToolItem(toolBar2, SWT.RADIO); toolItem2.setText("Open"); toolItem2.setImage(smallImage4); toolItem2 = new ToolItem(toolBar2, SWT.RADIO); toolItem2.setText("Java"); toolItem2.setImage(smallImage1); toolItem2 = new ToolItem(toolBar2, SWT.RADIO); toolItem2.setText("CVS Repository"); toolItem2.setImage(smallImage2); toolItem2 = new ToolItem(toolBar2, SWT.RADIO); toolItem2.setText("Synchronize"); toolItem2.setImage(smallImage3); final CoolItem coolItem2 = new CoolItem(coolbar2, SWT.DROP_DOWN); coolItem2.setControl(toolBar2);
*** This bug has been marked as a duplicate of 14330 ***