Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT Layout resizable
SWT Layout resizable [message #514942] Wed, 17 February 2010 09:53 Go to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
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 17:24 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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
Re: SWT Layout resizable [message #516286 is a reply to message #515098] Tue, 23 February 2010 14:00 Go to previous messageGo to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member

yes, i would like to use that one layout, GroupLayout from Instantiations. can you give me some hints on how to implement rap support for that layout, or some other layout?
grouplayout needs IDrawable interface that is not in RAP Runtime. may it be a problem?

Greetings, Edin
Re: SWT Layout resizable [message #516502 is a reply to message #516286] Wed, 24 February 2010 09:12 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Edin,

without knowing the code it is hard to tell what is necessary to
single-source the GrpupLayout.
A general guide to single-source code for RCP and RAP can be found here:
http://eclipsesource.com/en/info/rcp-rap-single-sourcing-gui deline/
(requires registration)

As far as I understand this layout is not open source. You may ask the
author if they are willing to provide a version that also runs on RAP
(I'm there to help if they need).

BTW, in the meanwhile, the Drawable interface is present in RAP CVS HEAD
(and will be available in 1.3M6)

HTH
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com

On 23.02.2010 15:00, ededagic wrote:
>
> yes, i would like to use that one layout, GroupLayout from
> Instantiations. can you give me some hints on how to implement rap
> support for that layout, or some other layout? grouplayout needs
> IDrawable interface that is not in RAP Runtime. may it be a problem?
>
> Greetings, Edin
Re: SWT Layout resizable [message #516539 is a reply to message #516502] Wed, 24 February 2010 11:31 Go to previous message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Okay thnx, is it possible to contact you per mail if we need the help for implementing it in RAP ? my mail is dedagic[at]acsa-consulting.de you can send me a mail

thx, Edin

[Updated on: Wed, 24 February 2010 11:32]

Report message to a moderator

Previous Topic:Flat border around a Browser widget
Next Topic:problem with context menu
Goto Forum:
  


Current Time: Wed Oct 09 20:23:23 GMT 2024

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

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

Back to the top