How to set a border around a Label?? [message #447847] |
Sat, 18 December 2004 19:48  |
Eclipse User |
|
|
|
Originally posted by: shaffin.email.uophx.edu
This is a multi-part message in MIME format.
------=_NextPart_000_009C_01C4E53A.9B6E7DB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am new to SWT programming and was wondering how to set a border around =
Widgets such as the Label widget???
Label title =3D new Label( shell, SWT.FLAT | SWT.BORDER );
Is this correct???
Shaffin Bhanji.
------=_NextPart_000_009C_01C4E53A.9B6E7DB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hello,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I am new to SWT programming and was wondering how to =
set a=20
border around Widgets such as the Label widget???</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Label title =3D new Label( shell, SWT.FLAT | =
SWT.BORDER=20
);</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Is this correct???</FONT></DIV>
<DIV><FONT size=3D2><BR>Shaffin Bhanji.</FONT></DIV></BODY></HTML>
------=_NextPart_000_009C_01C4E53A.9B6E7DB0--
|
|
|
Re: How to set a border around a Label?? [message #447870 is a reply to message #447847] |
Mon, 20 December 2004 12:03  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_003A_01C4E68B.E2727110
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Yes but lose the SWT.FLAT. It's not supported on every widget.
"SHAFFIN BHANJI" <shaffin@email.uophx.edu> wrote in message =
news:cq2j5k$iko$1@www.eclipse.org...
Hello,
I am new to SWT programming and was wondering how to set a border =
around Widgets such as the Label widget???
Label title =3D new Label( shell, SWT.FLAT | SWT.BORDER );
Is this correct???
Shaffin Bhanji.
------=_NextPart_000_003A_01C4E68B.E2727110
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Yes but lose the SWT.FLAT. It's =
not supported=20
on every widget.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"SHAFFIN BHANJI" <<A=20
=
href=3D"mailto:shaffin@email.uophx.edu">shaffin@email.uophx.edu</A>> =
wrote in=20
message <A=20
=
href=3D"news:cq2j5k$iko$1@www.eclipse.org">news:cq2j5k$iko$1@www.eclipse.=
org</A>...</DIV>
<DIV><FONT size=3D2>Hello,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I am new to SWT programming and was wondering how =
to set a=20
border around Widgets such as the Label widget???</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Label title =3D new Label( shell, SWT.FLAT | =
SWT.BORDER=20
);</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Is this correct???</FONT></DIV>
<DIV><FONT size=3D2><BR>Shaffin =
Bhanji.</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_003A_01C4E68B.E2727110--
|
|
|
Powered by
FUDForum. Page generated in 0.03532 seconds