Skip to main content



      Home
Home » Modeling » Graphiti » ScrollBar doesn't appear until resize
ScrollBar doesn't appear until resize [message #1767610] Fri, 07 July 2017 10:40 Go to next message
Eclipse UserFriend
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 10:49 Go to previous messageGo to next message
Eclipse UserFriend
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 09:37 Go to previous message
Eclipse UserFriend
Thank you Michael, i will.

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


Current Time: Thu Apr 24 07:13:50 EDT 2025

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

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

Back to the top