Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » control of view minimum size
control of view minimum size [message #307382] Tue, 22 August 2006 10:51 Go to next message
Eclipse UserFriend
Originally posted by: hiran.chaudhuri.softwareag.com

Hi there.

How is it possible to control a view's minimum size? I have read the article
which simply says there is no control (see url). In Swing you can at least
give min and max sizes for any component, regardless the layout that will be
applied later.

http://wiki.eclipse.org/index.php/FAQ_How_do_I_set_the_size_ or_position_of_my_view%3F

Hiran Chaudhuri
Re: control of view minimum size [message #307384 is a reply to message #307382] Tue, 22 August 2006 11:03 Go to previous messageGo to next message
Eclipse UserFriend
Hiran Chaudhuri wrote:
> Hi there.
>
> How is it possible to control a view's minimum size? I have read the article
> which simply says there is no control (see url). In Swing you can at least
> give min and max sizes for any component, regardless the layout that will be
> applied later.

You can set minimum and maximum sizes (and preferred sizes) on a number
of controls that you create within your view composite.

The question is "Does the parent composite layout respect the control
sizes or preferred sizes?"

The workbench window will calculate the size available to the view
parent composite. Then your view composite (that you created in
createPartControl(*)) will be told "here are your outer bounds, lay out
your children".

At which point your children will be laid out, based on your view
composite layout manager ... FillLayout, GridLayout, etc. Whether or
not your controls that are matched to their preferred sizes depends on
what layout you use.

Later,
PW
Re: control of view minimum size [message #307389 is a reply to message #307384] Tue, 22 August 2006 13:10 Go to previous message
Eclipse UserFriend
Originally posted by: hiran.chaudhuri.softwareag.com

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:ecf6fd$5j0$1@utils.eclipse.org...
> You can set minimum and maximum sizes (and preferred sizes) on a number of
> controls that you create within your view composite.
>
> The question is "Does the parent composite layout respect the control
> sizes or preferred sizes?"

Ok, seems like I cannot specifiy a minimum size to my view (I'd apply that
on the composite that I create within the parent). Or, at least it is not
respected. So I will have to find some suitable default values for a
startup, and everything else is a user problem.
Previous Topic:Floating point memory view
Next Topic:Eclipse Application and additional Jars
Goto Forum:
  


Current Time: Thu Sep 25 18:21:14 EDT 2025

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

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

Back to the top