I have a SWT shell that has a SWT browser in it. it works fine on OSX, but when on Windows it insists on disabling the vertical scrollbar in the shell or browser (I don't know which one!). Is there a way to make widgets hide their scrollbars?
When I call getVerticalScrollBar () or the horizontal equivalent on the shell or in the browser, I get null. So, is there a way to remove scrollbars?
here is my code, nothing special:
this.shell = new Shell(this.display, SWT.CLOSE | SWT.MIN | SWT.MAX);
shell.addListener(SWT.Close, new Listener(){
public void handleEvent(Event event) {
event.doit = false;
location = shell.getLocation();
shell.setVisible(false);
}
});
shell.setSize(popUpSize);
shell.setMinimumSize(popUpSize);
if(this.location == null){
shell.setLocation(x, y);
}else{
shell.setLocation(this.location);
}
shell.setLayout(new FillLayout());
this.browser = new Browser(shell, SWT.NONE | SWT.SMOOTH);
Any ideas?
Greetings
Andy
source
share