Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Scrollable e4 application
Scrollable e4 application [message #640103] Fri, 19 November 2010 01:28 Go to next message
Eclipse UserFriend
Hi,
Sorry to disturb again with my newbie questions, but am really helpless..
I would like my e4 application scrollable (the app consists of a trimmed window that has UI elements like sash and parts).
Right now it is not. There is no way I can see to accomplish that in the e4xmi editor.
Also, even though I can access the shell trhough IServiceConstants.ACTIVE_SHELL, I still don't see how to modify the style of that shell... (you only specify SWT.scroll when you call the constructor of the shell, not through methods)

Thanks for helping me out!
Re: Scrollable e4 application [message #640299 is a reply to message #640103] Sat, 20 November 2010 03:03 Go to previous messageGo to next message
Eclipse UserFriend
You mean the root area should be scrollable? This is NOT done my setting
stylebits but you'd need to wrap the whole content in a ScrolledComposite.

What you need to do is to add your custom RendererFactory which
subclasses the WBWindowRender and insert a ScrolledComposite.

Tom

Am 19.11.10 07:28, schrieb AppleJus:
> Hi,
> Sorry to disturb again with my newbie questions, but am really helpless..
> I would like my e4 application scrollable (the app consists of a
> trimmed window that has UI elements like sash and parts).
> Right now it is not. There is no way I can see to accomplish that in the
> e4xmi editor.
> Also, even though I can access the shell trhough
> IServiceConstants.ACTIVE_SHELL, I still don't see how to modify the
> style of that shell... (you only specify SWT.scroll when you call the
> constructor of the shell, not through methods)
>
> Thanks for helping me out!
Re: Scrollable e4 application [message #641367 is a reply to message #640299] Thu, 25 November 2010 03:48 Go to previous message
Eclipse UserFriend
Hi,I would appreciate more help on this one...I created a RendererFactory class which extends WBWRenderer (couldn't find WBWindowRenderer, or am I missing sth?) and I don't know which method to override, or how and where to insert the ScrolledComposite...
Thanks for any help!

Tom Schindl wrote on Sat, 20 November 2010 03:03
You mean the root area should be scrollable? This is NOT done my setting
stylebits but you'd need to wrap the whole content in a ScrolledComposite.

What you need to do is to add your custom RendererFactory which
subclasses the WBWindowRender and insert a ScrolledComposite.

Tom

Am 19.11.10 07:28, schrieb AppleJus:
> Hi,
> Sorry to disturb again with my newbie questions, but am really helpless..
> I would like my e4 application scrollable (the app consists of a
> trimmed window that has UI elements like sash and parts).
> Right now it is not. There is no way I can see to accomplish that in the
> e4xmi editor.
> Also, even though I can access the shell trhough
> IServiceConstants.ACTIVE_SHELL, I still don't see how to modify the
> style of that shell... (you only specify SWT.scroll when you call the
> constructor of the shell, not through methods)
>
> Thanks for helping me out!

Previous Topic:Default Cursor Behavior
Next Topic:EMF editor/generator with e4
Goto Forum:
  


Current Time: Mon Jul 07 10:02:30 EDT 2025

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

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

Back to the top