Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Flowlayout question
Flowlayout question [message #118484] Thu, 19 February 2004 20:57 Go to next message
Eclipse UserFriend
Originally posted by: djohan.broadvision.com

Hi,
I have some questions with regards to the use of flowLayout. I have a Label
object that has a border, and within that Label object, I nest another image
Label object. I am trying to get the image Label to appear on the Bottom
right corner of the parent, but after trying a few layouts, such as
ToolbarLayout, flowLayout, I still cannot get it to appear on the bottom
right. As shown in the attached image, I manage to get it to appear on the
top right using the FlowLayout. If I use the XYLayout, somehow the parent
Label gets confused and the text appears left justified.
My question is, is there a way to do it using some layout?
Also, notice that the text in the parent label is not being clipped, is
there an easy way to detect that there are child IFigures and clip the text
accordingly?

thanks,
Dicky


  • Attachment: step.jpg
    (Size: 2.13KB, Downloaded 108 times)
Re: Flowlayout question [message #118541 is a reply to message #118484] Fri, 20 February 2004 14:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You should not nest one label inside another. Create a plain figure, and
put two labels in it.

"Dicky Johan" <djohan@broadvision.com> wrote in message
news:c137jr$r7c$1@eclipse.org...
> Hi,
> I have some questions with regards to the use of flowLayout. I have a
Label
> object that has a border, and within that Label object, I nest another
image
> Label object. I am trying to get the image Label to appear on the Bottom
> right corner of the parent, but after trying a few layouts, such as
> ToolbarLayout, flowLayout, I still cannot get it to appear on the bottom
> right. As shown in the attached image, I manage to get it to appear on the
> top right using the FlowLayout. If I use the XYLayout, somehow the parent
> Label gets confused and the text appears left justified.
> My question is, is there a way to do it using some layout?
> Also, notice that the text in the parent label is not being clipped, is
> there an easy way to detect that there are child IFigures and clip the
text
> accordingly?
>
> thanks,
> Dicky
>
>
>
Re: Flowlayout question [message #118637 is a reply to message #118541] Fri, 20 February 2004 18:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: djohan.broadvision.com

Thanks for the response. I actually thought that since Label is a figure,
that nesting is actually encouraged...


"Randy Hudson" <none@us.ibm.com> wrote in message
news:c155p4$v34$1@eclipse.org...
> You should not nest one label inside another. Create a plain figure, and
> put two labels in it.
>
> "Dicky Johan" <djohan@broadvision.com> wrote in message
> news:c137jr$r7c$1@eclipse.org...
> > Hi,
> > I have some questions with regards to the use of flowLayout. I have a
> Label
> > object that has a border, and within that Label object, I nest another
> image
> > Label object. I am trying to get the image Label to appear on the Bottom
> > right corner of the parent, but after trying a few layouts, such as
> > ToolbarLayout, flowLayout, I still cannot get it to appear on the bottom
> > right. As shown in the attached image, I manage to get it to appear on
the
> > top right using the FlowLayout. If I use the XYLayout, somehow the
parent
> > Label gets confused and the text appears left justified.
> > My question is, is there a way to do it using some layout?
> > Also, notice that the text in the parent label is not being clipped, is
> > there an easy way to detect that there are child IFigures and clip the
> text
> > accordingly?
> >
> > thanks,
> > Dicky
> >
> >
> >
>
>
Re: Flowlayout question [message #118684 is a reply to message #118637] Fri, 20 February 2004 20:16 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

It is "encouraged" but you can't expect a layout manager to recognize that
there is some area of importance on the container, and that it should
position its children around that.

"Dicky Johan" <djohan@broadvision.com> wrote in message
news:c15ji1$i5h$1@eclipse.org...
> Thanks for the response. I actually thought that since Label is a figure,
> that nesting is actually encouraged...
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:c155p4$v34$1@eclipse.org...
> > You should not nest one label inside another. Create a plain figure,
and
> > put two labels in it.
> >
> > "Dicky Johan" <djohan@broadvision.com> wrote in message
> > news:c137jr$r7c$1@eclipse.org...
> > > Hi,
> > > I have some questions with regards to the use of flowLayout. I have a
> > Label
> > > object that has a border, and within that Label object, I nest another
> > image
> > > Label object. I am trying to get the image Label to appear on the
Bottom
> > > right corner of the parent, but after trying a few layouts, such as
> > > ToolbarLayout, flowLayout, I still cannot get it to appear on the
bottom
> > > right. As shown in the attached image, I manage to get it to appear on
> the
> > > top right using the FlowLayout. If I use the XYLayout, somehow the
> parent
> > > Label gets confused and the text appears left justified.
> > > My question is, is there a way to do it using some layout?
> > > Also, notice that the text in the parent label is not being clipped,
is
> > > there an easy way to detect that there are child IFigures and clip the
> > text
> > > accordingly?
> > >
> > > thanks,
> > > Dicky
> > >
> > >
> > >
> >
> >
>
>
Previous Topic:AutoScroll on part drag
Next Topic:View & Model separation (Logic example)
Goto Forum:
  


Current Time: Sat Dec 21 16:45:12 GMT 2024

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

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

Back to the top