Is it possible to ALWAYS show the VerticalBar even though there is nothing to scroll?
ScrolledComposite sc = new ScrolledComposite(main, SWT.BORDER_SOLID| SWT.V_SCROLL);
This line of code does not always have the scroll on.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For a ScrolledComposite I don’t think you can do this, at least if you want to have the H scroll function normally. You can call the
ScrolledComposite.setAlwaysShowScrollbars()to true, but then it will show both of the enabled scrollbars all the time. (They are enabled by setting the SWT.H_SCROLL or SWT.V_SCROLL in the options). If you don’t ever want horizontal scrolling then this will do what you want.