Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Unable to get Vertical ScrollBar for a Combo(getVerticalBar() for a Combo always returns null)
Unable to get Vertical ScrollBar for a Combo [message #1850130] Thu, 17 February 2022 02:52 Go to next message
Eclipse UserFriend
I am using a standard SWT Combo widget.

The data shown in this Combo could be large in number. So I am trying to display 500 results initially, and I intend to dynamically load more values from the server, when the user drags down the Vertical ScrollBar for the Combo.
The idea is to add a SelectionListener to the ScrollBar for this purpose.

But I notice that even when the Vertical ScrollBar is being displayed for the Combo, the getVeriticalBar() call always returns a null value. Is this a bug?

Call being made:
ScrollBar verticalScrollBar = combo.getVerticalBar();

Thanks for any inputs/pointers on how to solve this issue.
Re: Unable to get Vertical ScrollBar for a Combo [message #1850170 is a reply to message #1850130] Fri, 18 February 2022 23:59 Go to previous message
Eclipse UserFriend
I think the scrollbar you try to get is not part of Combo. It may be something like dynamically created popup menu.
Previous Topic:Constructor of Browser class get stuck with org.eclipse.swt.win32.win32.x86_64-3.118.0
Next Topic:Indeterminate progress bar animation problem on Linux
Goto Forum:
  


Current Time: Wed Jul 30 13:36:14 EDT 2025

Powered by FUDForum. Page generated in 0.02859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top