[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Srolling problem with ExpandBar

Hi Julien,

In general, including this case, reaching into a Control and setting its
vertical scrollbar's selection does not scroll the Control itself.
Scrolling a Control programmatically either has to be done using a
ScrolledComposite, or by api on the Control (eg.- Table.setTopIndex(int)).
Unfortunately ScrolledComposite does not apply to this case and ExpandBar
does not have api for what you need, so I don't think there's currently
support for this.  If you want you can log a Feature Request with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=SWT&bug_severity=enhancement .

Grant


"Julien" <jdenet@xxxxxxxxxxxxx> wrote in message
news:fva4ma$si5$1@xxxxxxxxxxxxxxxxxxxx
> Hello,
>
> I have problem with ExpandBar and scrolling. I want to set the focus to
> a freshly created expand item even if scrolling is needed. if I use
> setSelection on myBar.getVerticalBar(). The scroll bar is moving but not
>   the content of the expandBar.
>
> Does anymone have an idea of what I may have missed?
>
> Regards,
> Julien