| Home » Eclipse Projects » GEF » Flowlayout question
 Goto Forum:| 
| Flowlayout question [message #118484] | Thu, 19 February 2004 15:57  |  | 
| Eclipse User  |  |  |  |  | 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 124 times)
 |  |  |  |  | 
| Re: Flowlayout question [message #118541 is a reply to message #118484] | Fri, 20 February 2004 09:35   |  | 
| Eclipse User  |  |  |  |  | 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 13:33   |  | 
| Eclipse User  |  |  |  |  | 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 15:16  |  | 
| Eclipse User  |  |  |  |  | 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
 > > >
 > > >
 > > >
 > >
 > >
 >
 >
 |  |  |  | 
 
 
 Current Time: Fri Oct 31 05:33:32 EDT 2025 
 Powered by FUDForum . Page generated in 0.03175 seconds |