[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Controls on ScrolledComposite 'guzzles' events

Adam Pordzik schrieb:
I've putted some Controls (Labels/Buttons) inside a ScrolledComposite/ Composite-pair. As long as the mouse cursor is e.g. directly over the scroll-bar everything is fine, but when I roll the MouseWheel and the Cursor is positioned above a control, scrolling stops. :-/

Hello,

I could narrow the effect down to preceding Controls within a Layout: If you leave "Button malicious1" in my following example untouched, mentioned effect will occour. If you delete line containing "Button malicious1" everything will work correctly as expected (see Snippet5 from dev.eclipse.org).

It would be nice, if someone can confirm this bug. (At least I consider this as a bug, but hopefully I just did something wrong)


Or even easier to reproduce within Snippet166 by placing:

"final Button btn = new Button (shell, SWT.PUSH);"

between the lines:

"shell.setLayout(new FillLayout()); // place"
	
and

"final ScrolledComposite scrollComposite = new ScrolledComposite (
    shell, SWT.V_SCROLL | SWT.BORDER);"


A

--