Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Scrollable e4 application
Scrollable e4 application [message #640103] Fri, 19 November 2010 06:28 Go to next message
AppleJus Mising name is currently offline AppleJus Mising nameFriend
Messages: 46
Registered: July 2010
Member
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 08:03 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 08:48 Go to previous message
AppleJus Mising name is currently offline AppleJus Mising nameFriend
Messages: 46
Registered: July 2010
Member
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: Thu Apr 25 00:09:21 GMT 2024

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

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

Back to the top