[PropertiesDialog]property page appears too wide,how to deal with it [message #6140] |
Wed, 23 April 2003 08:01 |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0011_01C309A0.E7389BD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hi all
i have a property page , but when i select it from the properties dialog =
, it makes the dialog too wide
that's because my page control contains a composite whose preferred =
width is too wide due to the form layout i use inside it , and i can't =
change the layout sturcture of it
so i thought about telling the dialog the size of my page=20
the only method i found that looks like what i want is doComputeSize()=20
//////////////////////////////////////////////////////////// /////////////=
//////////////////////////////////////////////
/**
* Computes the size needed by this page's UI control.
* <p>
* All pages should override this method and set the appropriate sizes
* of their widgets, and then call <code>super.doComputeSize</code>.
* </p>
*
* @return the size of the preference page encoded as
* <code>new Point(width,height)</code>
*/
protected Point doComputeSize()
//////////////////////////////////////////////////////////// /////////////=
//////////////////////////////////////////////
but i don't know how to use it , i should do something with my widgets =
then i call super.doComputeSize which will compute the preferred size of =
my page control, which will be the same.......
note:All pages should override this method and set the appropriate sizes =
as the documentations say , but i can't find any page that override this =
method
how to handle this situation
thanks
joe
------=_NextPart_000_0011_01C309A0.E7389BD0
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.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<P><FONT face=3DArial size=3D2>hi all</FONT></P>
<P><FONT face=3DArial size=3D2>i have a property page , but when i =
select it from=20
the properties dialog , it makes the dialog too wide</FONT></P>
<P><FONT face=3DArial size=3D2>that's because my page control contains a =
composite=20
whose preferred width is too wide due to the form layout i use inside it =
, and i=20
can't change the layout sturcture of it</FONT></P>
<P><FONT face=3DArial size=3D2>so i thought about telling the dialog the =
size of my=20
page </FONT></P>
<P><FONT face=3DArial size=3D2>the only method i found that looks like =
what i want=20
is </FONT><FONT face=3DArial size=3D2>doComputeSize() </FONT></P>
<P><FONT face=3DArial=20
size=3D2> //////////////////////////////////////////////////////////// ////=
///////////////////////////////////////////////////////</FONT ></P>
<P><FONT face=3DArial size=3D2>/**</FONT></P>
<P><FONT face=3DArial size=3D2>* Computes the size needed by this page's =
UI=20
control.</FONT></P>
<P><FONT face=3DArial size=3D2>* <p></FONT></P>
<P><FONT face=3DArial size=3D2>* All pages should override this method =
and set the=20
appropriate sizes</FONT></P>
<P><FONT face=3DArial size=3D2>* of their widgets, and then call=20
<code>super.doComputeSize</code> . </FONT></P>
<P><FONT face=3DArial size=3D2>* </p></FONT></P>
<P><FONT face=3DArial size=3D2>*</FONT></P>
<P><FONT face=3DArial size=3D2>* @return the size of the preference page =
encoded=20
as</FONT></P>
<P><FONT face=3DArial size=3D2>* <code>new=20
Point(width,height)</code></FONT></P>
<P><FONT face=3DArial size=3D2>*/</FONT></P>
<P><FONT face=3DArial size=3D2>protected Point =
doComputeSize()</FONT></P>
<P><FONT face=3DArial=20
size=3D2> //////////////////////////////////////////////////////////// ////=
///////////////////////////////////////////////////////</FONT ></P>
<P><FONT face=3DArial size=3D2>but i don't know how to use it , i should =
do=20
something with my widgets then i call super.doComputeSize which will =
compute the=20
preferred size of my page control, which will be the =
same.......</FONT></P>
<P><FONT face=3DArial size=3D2>note:All pages should override this =
method and set=20
the appropriate sizes as the documentations say , but i can't find any =
page that=20
override this method</FONT></P>
<P><FONT face=3DArial size=3D2>how to handle this situation</FONT></P>
<P><FONT face=3DArial size=3D2>thanks</FONT></P>
<P><FONT face=3DArial size=3D2>joe</FONT></P>
<P><FONT face=3DArial size=3D2></FONT> </P>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0011_01C309A0.E7389BD0--
|
|
|
Powered by
FUDForum. Page generated in 0.02695 seconds