Home » Eclipse Projects » GEF » Like ToolBarLayout, but with multiple rows?
Like ToolBarLayout, but with multiple rows? [message #109741] |
Thu, 18 December 2003 09:07 |
Eclipse User |
|
|
|
Originally posted by: fuc_ingforce.hotmail.com
Hello,
I have been searching quite long for a solution, but couldn't find a
convenient one yet:
Is there a Layout in Draw2D which is comparable to the GridLayout in SWT?
The ToolBarLayout works fine for me, but unfortunately it only offers one
row. Any suggestions? Thanks^^
|
|
|
Re: Like ToolBarLayout, but with multiple rows? [message #109760 is a reply to message #109741] |
Thu, 18 December 2003 20:53 |
Pratik Shah Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
> Is there a Layout in Draw2D which is comparable to the GridLayout in SWT?
No, sorry.
> The ToolBarLayout works fine for me, but unfortunately it only offers one
> row. Any suggestions?
You can achieve that by using several nested figures. I.e., have a figure
with a vertical toolbar layout that contains figures with horizontal toolbar
layouts (thus, each of these being a row in your table). Nested
ToolbarLayouts, however, might now work. In that case, you might want to
try FlowLayout.
"Roger" <fuc_ingforce@hotmail.com> wrote in message
news:brrqop$kal$1@eclipse.org...
> Hello,
>
> I have been searching quite long for a solution, but couldn't find a
> convenient one yet:
>
> Is there a Layout in Draw2D which is comparable to the GridLayout in SWT?
> The ToolBarLayout works fine for me, but unfortunately it only offers one
> row. Any suggestions? Thanks^^
>
|
|
|
Re: Like ToolBarLayout, but with multiple rows? [message #110068 is a reply to message #109760] |
Fri, 26 December 2003 16:31 |
Eclipse User |
|
|
|
Originally posted by: Vadim.Strizhevsky.nowhere.com
Pratik Shah wrote:
> > Is there a Layout in Draw2D which is comparable to the GridLayout in SWT?
> No, sorry.
I actually find GridLayout model to be most convinient to use. So I wrote
one myself about a year ago when I needed it. It was actually a mostly
trivial conversion of SWT's GridLayout, with replacement of Control to
IFigure, all swt's geometry classes (Point, etc.. ) to draw2d ones and
computeSize to getPrefferedSize calls. May have needed a couple of other
adjustments that I don't remember at this point.
It works very well for me. I can post it if there's interest, but I'm not
sure how acceptable this is. I.e. would a copy of SWT code be even allowed?
-Vadim
|
|
| |
Re: Like ToolBarLayout, but with multiple rows? [message #110107 is a reply to message #110068] |
Mon, 29 December 2003 02:04 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
> It works very well for me. I can post it if there's interest, but I'm not
> sure how acceptable this is. I.e. would a copy of SWT code be even
allowed?
Allowed? Absolutely. In fact, you may be required to make the code
available :-)!
> -Vadim
|
|
|
Re: Like ToolBarLayout, but with multiple rows? [message #110334 is a reply to message #110107] |
Tue, 30 December 2003 16:49 |
Eclipse User |
|
|
|
Originally posted by: Vadim.Strizhevsky.nowhere.com
Randy Hudson wrote:
> > It works very well for me. I can post it if there's interest, but I'm not
> > sure how acceptable this is. I.e. would a copy of SWT code be even
> allowed?
> Allowed? Absolutely. In fact, you may be required to make the code
> available :-)!
He he. ;) Ok. Let me check it over for any obvious stupid things and I'll
post it next week.
-Vadim
|
|
|
Re: Like ToolBarLayout, but with multiple rows? [message #110416 is a reply to message #110334] |
Fri, 02 January 2004 06:15 |
Eclipse User |
|
|
|
Originally posted by: fuc_ingforce.hotmail.com
Vadim Strizhevsky wrote:
> Randy Hudson wrote:
> > > It works very well for me. I can post it if there's interest, but I'm not
> > > sure how acceptable this is. I.e. would a copy of SWT code be even
> > allowed?
> > Allowed? Absolutely. In fact, you may be required to make the code
> > available :-)!
> He he. ;) Ok. Let me check it over for any obvious stupid things and I'll
> post it next week.
> -Vadim
That would be great indeed, Vadim!
|
|
|
Re: Like ToolBarLayout, but with multiple rows? [message #138593 is a reply to message #110416] |
Thu, 17 June 2004 11:51 |
Eclipse User |
|
|
|
Originally posted by: js.sygel.com
I would be interested in this contribution, has it already been posted?
Thanks ens keep up the good work,
Jurrien.
"Roger" <fuc_ingforce@hotmail.com> wrote in message
news:bt329c$9vc$1@eclipse.org...
> Vadim Strizhevsky wrote:
>
> > Randy Hudson wrote:
>
> > > > It works very well for me. I can post it if there's interest, but
I'm not
> > > > sure how acceptable this is. I.e. would a copy of SWT code be even
> > > allowed?
>
> > > Allowed? Absolutely. In fact, you may be required to make the code
> > > available :-)!
>
> > He he. ;) Ok. Let me check it over for any obvious stupid things and
I'll
> > post it next week.
>
> > -Vadim
>
> That would be great indeed, Vadim!
>
>
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 07:11:22 GMT 2024
Powered by FUDForum. Page generated in 0.03634 seconds
|