Hi Christian,
thanks for the hints. Yes, I try to build a view with the UI Builder module. But I think, I have a problem to understand
the SWT structure. I get never a Scrollbar, also not with _javascript_. Has you a sample with _javascript_ for me?
loadModule('/System/UI')
loadModule('/System/UI
Builder')
SWT = org.eclipse.swt.SWT
ScrolledComposite = org.eclipse.swt.custom.ScrolledComposite
GridLayout = org.eclipse.swt.layout.GridLayout
Button = org.eclipse.swt.widgets.Button
def
buildUI():
view = createView("UI
Test")
shell = createComposite("o!
o!")
sc1 = ScrolledComposite(shell, SWT.BORDER | SWT.V_SCROLL)
sc1.setAlwaysShowScrollBars(True);
c1 = createComposite()
sc1.setContent(c1)
layout = GridLayout();
layout.numColumns =
4;
c1.setLayout(layout);
pushComposite(c1)
createButton("second
button",
None,
"2/2")
b1 = Button (c1, SWT.PUSH);
b1.setText("first
button");
executeUI("buildUI()")
Best Regards
Sven
Von: ease-dev-bounces@xxxxxxxxxxx <ease-dev-bounces@xxxxxxxxxxx>
Im Auftrag von Christian.Pontesegger@xxxxxxxxxxxx
Gesendet: Freitag, 15. November 2019 09:41
An: ease-dev@xxxxxxxxxxx
Betreff: Re: [ease-dev] ScrollBars in View
Hi Sven,
I guess you are using the UI Builder module for this task. Currently we do not provide a nice module method to create a scrolled composite. However you could create the Java instance on your own
and use addControl() to add it to your layout. Then use pushComposite(yourScrolledControl) to set it as the active composite to be used for your UI elements.
HTH
Christian
Hello Devs,
I have made a big View EASE-Script(Python) and need to set Scollbars.
How is this possible with Python or also in _javascript_.
Best Regards
Sven