Skip to main content



      Home
Home » Eclipse Projects » GEF » Label left alignment
Label left alignment [message #99875] Wed, 15 October 2003 07:58 Go to next message
Eclipse UserFriend
Originally posted by: snowice.asiamail.com

Hi,
Using the label in the logic example, i did a slight modification to it
so that i can resize the label.

1)
------------
Hello World |
------------

2) After resizing....
-----------------------------
Hello World |
-----------------------------

3) Desired Effect...
-----------------------------
Hello World |
-----------------------------


However, i find that the text is always centralized whenever i resize the
label. i tried to use
"label.setTextAlignment(PositionConstants.LEFT);" to achieved the desired
effect (3). However, it has no effect at all. Is there a way i can remedy
this? Hope that someone can enlighten me. Thanks!!

regards,
Evon
Re: Label left alignment [message #99908 is a reply to message #99875] Wed, 15 October 2003 10:32 Go to previous message
Eclipse UserFriend
Originally posted by: delee.ATusDOT.ibm.com

> However, i find that the text is always centralized whenever i resize the
> label. i tried to use "label.setTextAlignment(PositionConstants.LEFT);" to
achieved the desired
> effect.

Try Label.setLabelAlignment(PositionConstants.LEFT)
Previous Topic:how to create a pop window in gef ?
Next Topic:when does the editpart create editpolicy
Goto Forum:
  


Current Time: Thu May 08 08:17:35 EDT 2025

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

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

Back to the top