Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » ScrollBar doesn't appear until resize
ScrollBar doesn't appear until resize [message #1767610] Fri, 07 July 2017 14:40 Go to next message
Umut Kazan is currently offline Umut KazanFriend
Messages: 25
Registered: February 2017
Junior Member
Hello,

I use AbstractListComposite for the list view and AbstractDetailComposite for the details part in my properties tab. What should i do? Tried to modify code that creates detail composite, here is that method


@SuppressWarnings(
	{ "rawtypes" })
	@Override
	public AbstractDetailComposite createDetailComposite(Class eClass, Composite parent, int style)
	{

		AbstractDetailComposite composite = new ResourceDetailComposite(parent, SWT.NONE, parentObject);
		composite.setTitle(Messages.translateKey_resourceDetails);
		((ResourceDetailComposite) composite).setScenarioParams((ScenarioParametersImpl) this.parentObject);
		// revalidateLayout(composite);

		// try
		// {
		// ScrolledComposite sc = .........
		//
		// sc.setAlwaysShowScrollBars(true);
		//
		// sc.setExpandVertical(true);
		//
		// sc.setFocus();
		//
		// sc.addMouseWheelListener(new MouseWheelListener()
		// {
		//
		// @Override
		// public void mouseScrolled(MouseEvent e)
		// {
		//
		// int height = sc.getClientArea().height;
		// sc.setMinSize(parent.computeSize(height, SWT.DEFAULT));
		// }
		// });
		//
		// sc.getVerticalBar().setIncrement(20);
		// }
		// catch (Exception e)
		// {
		// // if page opened in dialog box, proceed as nothing has happened.
		// }
		return composite;
	}



Also attached the images. First image shows the error, you can see the element at the bottom of the composite, and second image shows the composite with the scrollbar after resize.

Umut
Re: ScrollBar doesn't appear until resize [message #1770134 is a reply to message #1767610] Tue, 08 August 2017 14:49 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Umut,

sorry for the late reply, but this is a question you should rather post in the Eclipse UI forum. Graphiti itself does not have any stakes in the content UIs of the properties views.

Michael
Re: ScrollBar doesn't appear until resize [message #1770263 is a reply to message #1770134] Wed, 09 August 2017 13:37 Go to previous message
Umut Kazan is currently offline Umut KazanFriend
Messages: 25
Registered: February 2017
Junior Member
Thank you Michael, i will.

Umut
Previous Topic:Creating floating Shape
Next Topic:Changing image associated with Shape
Goto Forum:
  


Current Time: Thu Oct 10 04:57:50 GMT 2024

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

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

Back to the top