Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Changing the order of children layouted in a SashForm
Changing the order of children layouted in a SashForm [message #445793] Thu, 11 November 2004 13:39 Go to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
Hi,

is there any way I could change the order of the children in a SashForm
after adding them?

I wanted three children in a row - so I added them one after another.
Now I need to insert one at the beginning of the SashForm. How would I do
that? Do I have to dispose all of them and "rebuild" the entire SashForm?
There seems to be no suitable method in the API, how does for example
eclipse allow the user to drag one ViewForm around and insert it at
different positions in the Sash? I'm basically trying to do the same in my
app. Eclipse is not rebuilding the entire workspace, is it?

Thank you for your help!

Regards,
Fabian


P.S.: Thank you Veronika Irvine for your help lately, unfortunately I wasn't
able to send you any email to say thanks - they all bounced.
Re: Changing the order of children layouted in a SashForm [message #445796 is a reply to message #445793] Thu, 11 November 2004 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

I'm not sure if it will work, but try using Control.moveAbove(control)
or Control.moveBelow(control) to move your child to be above or below
another child (note above and below maybe backwards from what you think
it means, so give it a try).


--
Thanks,
Rich Kulp
Re: Changing the order of children layouted in a SashForm [message #445797 is a reply to message #445796] Thu, 11 November 2004 14:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Oh, one more thing, after you do the move, you will need to do
SashForm.layout() to get the it layed out in the new order.

Rich Kulp wrote:
> I'm not sure if it will work, but try using Control.moveAbove(control)
> or Control.moveBelow(control) to move your child to be above or below
> another child (note above and below maybe backwards from what you think
> it means, so give it a try).
>
>

--
Thanks,
Rich Kulp
Re: Changing the order of children layouted in a SashForm [message #445924 is a reply to message #445797] Fri, 12 November 2004 08:31 Go to previous message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
Rich Kulp wrote:

> Oh, one more thing, after you do the move, you will need to do
> SashForm.layout() to get the it layed out in the new order.
>
> Rich Kulp wrote:
>> I'm not sure if it will work, but try using Control.moveAbove(control)
>> or Control.moveBelow(control) to move your child to be above or below
>> another child (note above and below maybe backwards from what you think
>> it means, so give it a try).

Worked just fine - Thank you! :)
Previous Topic:I wanna change my ComboBoxCellEditor's items for every row in the table.
Next Topic:URL link in a text field.
Goto Forum:
  


Current Time: Wed Oct 28 00:46:07 GMT 2020

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

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

Back to the top