Changing the order of children layouted in a SashForm [message #445793] |
Thu, 11 November 2004 08:39  |
Eclipse User |
|
|
|
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 #445924 is a reply to message #445797] |
Fri, 12 November 2004 03:31  |
Eclipse User |
|
|
|
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! :)
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds