Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Size constraints in a PartSashContainer
Size constraints in a PartSashContainer [message #744836] Sat, 22 October 2011 11:26 Go to next message
Karl Weber is currently offline Karl WeberFriend
Messages: 63
Registered: September 2010
Member
As far as I know, one can put integer numbers in the field Container Data of the children of a PartSashContainer. They determine the relative size a child gets of the size of the parent PartSashContainer.

Now I would like to set an absolute size of one child, or a maximum size. The other children should take the remainder of the space. How can one do this?

If this is not implemented in the model yet, is there a workaround for the SWT renderer?

EDIT:

There seems to be another problem even with relative sizes: One can set the relativ size of one child to 5%. If the application is started, the child gets this 5%, even if the window is maximized. However, if one tries to change the size with the sash, the size of the child jumps to 10% (estimate!). Afterward one cannot set the size of the child below this (estimated) 10%; above that limit, one can change its size at will (well up to 90% at the upper end).

Maybe my approach is wrong: I would like to use a status line in my application. Since this is not present in e4 4.1.1 (I do not use the compatibility mode), I wanted to use an MPart for my own implementation of a status line. Is there a better approach to a status line?

[Updated on: Sat, 22 October 2011 12:26]

Report message to a moderator

Re: Size constraints in a PartSashContainer [message #744988 is a reply to message #744836] Sat, 22 October 2011 13:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi Karl,

There was a similar question some days ago "how to set minimum size for
windows or parts".

I'm not sure the guy filed a bugzilla, I know I've seen one for min, max
sizes for windows but I can't remember having seen one for containerData.

Would you mind filing one and then post the bug-id to this forum.

Tom

Am 22.10.11 13:26, schrieb Karl Weber:
> As far as I know, one can put integer numbers in the field Container
> Data of the children of a PartSashContainer. They determine the relative
> size a child gets of the size of the parent PartSashContainer.
>
> Now I would like to set an absolute size of one child, or a maximum
> size. The other children should take the remainder of the space. How can
> one do this?
>
> If this is not implemented in the model yet, is there a workaround for
> the SWT renderer?
Re: Size constraints in a PartSashContainer [message #745143 is a reply to message #744988] Sat, 22 October 2011 16:13 Go to previous message
Karl Weber is currently offline Karl WeberFriend
Messages: 63
Registered: September 2010
Member
Since I couldn't find a bug report I filed this one

http://bugs.eclipse.org/bugs/show_bug.cgi?id=361731

This leaves me with the problem of the status line. I know there is a bug report about it, but this does not seem to change anything...
Previous Topic:Controls
Next Topic:How to access the liveeditor
Goto Forum:
  


Current Time: Thu Apr 25 00:36:32 GMT 2024

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

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

Back to the top