Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Like ToolBarLayout, but with multiple rows?
Like ToolBarLayout, but with multiple rows? [message #109741] Thu, 18 December 2003 09:07 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #110081 is a reply to message #110068] Fri, 26 December 2003 19:50 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Yes, we'd be interested in your contribution.

"Vadim Strizhevsky" <Vadim.Strizhevsky@nowhere.com> wrote in message
news:bshnof$420$1@eclipse.org...
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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!
>
>
Re: Like ToolBarLayout, but with multiple rows? [message #166563 is a reply to message #138593] Wed, 02 February 2005 00:54 Go to previous message
Klaus Wenger is currently offline Klaus WengerFriend
Messages: 31
Registered: July 2009
Member
Hello GEF community,

I have not seen the promised code so I followed the given recipe and it
works at a first glance.

Please find the code attached for your convenience. My next task is now to
make the grid work in a flow context ... let's see how that will work out.

Have fun!

K

"Jurrien" <js@sygel.com> wrote in message news:cas0ju$1g5$1@eclipse.org...
> 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!
> >
> >
>
>




Previous Topic:How to open a new page?
Next Topic:how to get screen width & height
Goto Forum:
  


Current Time: Fri Apr 26 07:11:22 GMT 2024

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

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

Back to the top