Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Table/View size
Table/View size [message #460681] Wed, 27 December 2006 18:40 Go to next message
Eclipse UserFriend
I am trying to create a table that is the full width of the view and a fixed
percentage of its height. My trouble is that I cannot seem to determine
the size of the view. How can I retrieve the size of the view?
Re: Table/View size [message #460684 is a reply to message #460681] Thu, 28 December 2006 00:58 Go to previous messageGo to next message
Eclipse UserFriend
Can you please be more specific on what you are talking about?
Re: Table/View size [message #460701 is a reply to message #460681] Thu, 28 December 2006 10:50 Go to previous message
Eclipse UserFriend
J Taylor wrote:
> I am trying to create a table that is the full width of the view and a fixed
> percentage of its height. My trouble is that I cannot seem to determine
> the size of the view. How can I retrieve the size of the view?

The Composite that is passed into your IViewPart.createPartControl()
method is the content portion of the view. You could save a reference
to this Composite (remember to null the reference when the view is
disposed) in createPartControl() and use that to determine the height.

You might also want to consider writing a custom Layout for your view.
It's not as bad as it sounds. :)

Matthew
Previous Topic:How to determine your RCP Version?
Next Topic:RCP3.2.1 & JNLP , Application doesn't launch
Goto Forum:
  


Current Time: Fri Mar 28 04:31:49 EDT 2025

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

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

Back to the top