SWT Layout resizable [message #514942] |
Wed, 17 February 2010 04:53  |
Eclipse User |
|
|
|
Hello,
which SWT Layout would prefer for using with RAP. The app window should automatically resize. Now im using Form Layout, its resizes but the spacing between the related element can only be defined in absoulte points when resizing, not relative. I tried also GroupLayout, but it seems not to be usable with RAP (missing needed SWT Drawable interface). any other layouts you prefer?
the second question is, how can i get the absoulte x, y bounds of a table cell in relation to the parent of the cell table (table has the form layout). want to show exactly under that cell another one table, when click the mouse on it
Greetings, Edin
|
|
|
Re: SWT Layout resizable [message #515098 is a reply to message #514942] |
Wed, 17 February 2010 12:24   |
Eclipse User |
|
|
|
On 17.02.2010 10:53, ededagic wrote:
> Hello,
>
> which SWT Layout would prefer for using with RAP. The app window should
> automatically resize. Now im using Form Layout, its resizes but the
> spacing between the related element can only be defined in absoulte
> points when resizing, not relative. I tried also GroupLayout, but it
> seems not to be usable with RAP (missing needed SWT Drawable interface).
> any other layouts you prefer?
From what I understand, the FormLayout would suit your needs. Are you
aware of this article? It contains a detailed discussion of the various
SWT layouts.
http://www.eclipse.org/articles/article.php?file=Article-Und erstanding-Layouts/index.html
Are you referring to the GroupLayout from Instantiations?
If you are able and willing to change the source, the changes to bring a
layout manager to work are usually very small.
>
> the second question is, how can i get the absoulte x, y bounds of a
> table cell in relation to the parent of the cell table (table has the
> form layout). want to show exactly under that cell another one table,
> when click the mouse on it
TableItem#getBounds() returns the size and position of a table item. You
may also try to use cell editors as they may help with handling the
scrolling etc.
>
> Greetings, Edin
--
Rüdiger Herrmann
http://eclipsesource.com
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03711 seconds