Skip to main content



      Home
Home » Eclipse Projects » GEF » Align objects in Panel Figure
Align objects in Panel Figure [message #160153] Thu, 02 December 2004 12:44 Go to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi,

I use a Panel as a composite figure to host an Image and a Label figures.
The Image and Label show up as left-justified inside the Panel. Is there
a way to center the figures inside the Panel?

Thanks
slam
Re: Align objects in Panel Figure [message #160203 is a reply to message #160153] Thu, 02 December 2004 15:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You should be using the Label figure in draw2d only. It supports both image
and text. Call setLabelAlignment to center the label.
"slam" <jsk_lam@hotmail.com> wrote in message
news:conk9d$87i$1@www.eclipse.org...
> Hi,
>
> I use a Panel as a composite figure to host an Image and a Label figures.
> The Image and Label show up as left-justified inside the Panel. Is there
> a way to center the figures inside the Panel?
>
> Thanks
> slam
>
>
Re: Align objects in Panel Figure [message #160226 is a reply to message #160203] Thu, 02 December 2004 17:34 Go to previous message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Actualy, for now I have only Image and Text to show in the composite figure.
But later on, I will be adding couple more images and maybe a +/- small
rectangle
box to indicate the expand/collapse state. Can you give me some help on
how to draw the +/- in the panel figure?

Thanks
slam

"Randy Hudson" <none@us.ibm.com> wrote in message
news:conv7v$2nm$1@www.eclipse.org...
> You should be using the Label figure in draw2d only. It supports both
image
> and text. Call setLabelAlignment to center the label.
> "slam" <jsk_lam@hotmail.com> wrote in message
> news:conk9d$87i$1@www.eclipse.org...
> > Hi,
> >
> > I use a Panel as a composite figure to host an Image and a Label
figures.
> > The Image and Label show up as left-justified inside the Panel. Is
there
> > a way to center the figures inside the Panel?
> >
> > Thanks
> > slam
> >
> >
>
>
Previous Topic:Figure
Next Topic:how to change the splash image
Goto Forum:
  


Current Time: Mon Jul 14 18:41:41 EDT 2025

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

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

Back to the top