Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » set SWT.Table on foreground
set SWT.Table on foreground [message #511039] Fri, 29 January 2010 15:54 Go to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hello,

i got the following problem:

i want to show a Table when i modify the text of the Text field. I implemented some kind of autocomplete and when the button is pressed the table with results is show. the problem is that the result table is shown behind all other widgets on the composite. i want it to be in front of that widgets so i can see the contest of the table.
the table has the same parent as the text field and all other fields. any ideas how to tell the table or composite to put the table in front of every other composite children?

Thx, Edin
Re: set SWT.Table on foreground [message #511048 is a reply to message #511039] Fri, 29 January 2010 11:16 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Edin,

did you try the Control#moveAbove(Control) and
Control#moveBelow(Control) methods?

Best,
Ivan

On 1/29/2010 5:54 PM, ededagic wrote:
> Hello,
> i got the following problem:
> i want to show a Table when i modify the text of the Text field. I
> implemented some kind of autocomplete and when the button is pressed
> the table with results is show. the problem is that the result table
> is shown behind all other widgets on the composite. i want it to be in
> front of that widgets so i can see the contest of the table. the table
> has the same parent as the text field and all other fields. any ideas
> how to tell the table or composite to put the table in front of every
> other composite children?
>
> Thx, Edin
Re: set SWT.Table on foreground [message #511303 is a reply to message #511048] Mon, 01 February 2010 08:24 Go to previous messageGo to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
no, i didn't
it works, thx Smile

Edin

the only problem now is the following:
i have a table, and when i click in one tablecell, i display a second table exactly under the selected cell. now i use move method on the second table, and it is shown on top (you can see the context), but the column lines of the first tables are visible on this second. but only the column lines, not the row lines. seems like the second table is transparent for the column lines. i used table.moveAbove(null);

[Updated on: Mon, 01 February 2010 11:33]

Report message to a moderator

Re: set SWT.Table on foreground [message #511312 is a reply to message #511039] Mon, 01 February 2010 09:08 Go to previous message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
is it normal that, if there is a vertical scrollbar in a SWT.Table, the Table shows automatically horizontal scrollbar? i made a table that automatically resizes depending on the element count. but if elements count > 5 the height wouldn't reisze to show all items. at this moment i want to get vertical bar displayed. it works but right then i get the horizontal bar too. But it looks not so pretty and is not needed, so how to get it invisible?
Previous Topic:How to refresh an SWT viewer in Eclipse RAP
Next Topic:A Dialog that asks user to save file to their local filesystem
Goto Forum:
  


Current Time: Sat Oct 12 10:03:12 GMT 2024

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

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

Back to the top