Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » problem in dialog window in linux ??
problem in dialog window in linux ?? [message #436131] Wed, 12 May 2004 05:10 Go to next message
Eclipse UserFriend
Originally posted by: dashing_rastogi.yahoo.com

hi guys
here is a code snippet for creating dialog shell ..it works fine on
windows , means it doesnt show maximize,minimize button and you cant
resize it but on linux it shows maximize,minimize and i can even resize it
..can anyone suggest me some other way or tell me the problem in this ,
thanks in advance..

final Shell parent = getParent();
shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
Re: problem in dialog window in linux ?? [message #436134 is a reply to message #436131] Wed, 12 May 2004 08:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dumitru.frunza.moldsoft.com

achal rastogi wrote:
> hi guys
> here is a code snippet for creating dialog shell ..it works fine on
> windows , means it doesnt show maximize,minimize button and you cant
> resize it but on linux it shows maximize,minimize and i can even resize it
> .can anyone suggest me some other way or tell me the problem in this ,
> thanks in advance..
>
> final Shell parent = getParent();
> shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
>

Excerpt from the Shell's Javadoc:

"Note: The styles supported by this class (Shell) must be treated as
HINTs, since the window manager for the desktop on which the instance is
visible has ultimate control over the appearance and behavior of
decorations and modality. For example, some window managers only support
resizable windows and will always assume the RESIZE style, even if it is
not set. [...]"

And I don't think you can do something about it...
Re: problem in dialog window in linux ?? [message #436206 is a reply to message #436134] Wed, 12 May 2004 23:19 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Actually, the problem is not that GTK <i>doesn't</i> support
non-resizable windows.&nbsp; It's that SWT on GTK doesn't support
non-resizable windows.&nbsp; Look around through some of the native apps in
GTK.&nbsp; You look long enough, you'll find a non-resizable window (I've
found several).&nbsp; The only thing I can think of to do about it is to
edit the native code handling the window creation on GTK and submit a
patch.<br>
<br>
Daniel<br>
<br>
Dima Frunza wrote:
<blockquote cite="midc7shtr$l9h$1@eclipse.org" type="cite">achal
rastogi wrote:
<br>
<blockquote type="cite">hi guys
<br>
here is a code snippet for creating dialog shell ..it works fine on
<br>
windows , means it doesnt show maximize,minimize button and you cant
<br>
resize it but on linux it shows maximize,minimize and i can even resize
it
<br>
..can anyone suggest me some other way or tell me the problem in this ,
<br>
thanks in advance..
<br>
<br>
&nbsp;final Shell parent = getParent();
<br>
&nbsp;shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
<br>
<br>
</blockquote>
<br>
Excerpt from the Shell's Javadoc:
<br>
<br>
"Note: The styles supported by this class (Shell) must be treated as
HINTs, since the window manager for the desktop on which the instance
is visible has ultimate control over the appearance and behavior of
decorations and modality. For example, some window managers only
support resizable windows and will always assume the RESIZE style, even
if it is not set. [...]"
<br>
<br>
And I don't think you can do something about it...
<br>
</blockquote>
</body>
</html>
Re: problem in dialog window in linux ?? [message #436222 is a reply to message #436206] Thu, 13 May 2004 13:16 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C438CA.FDCF0A50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

This was fixed a while back. The problem was that the window manger was =
changed and more code was needed to convince it to honour the hints. =
This same code on Solaris under MWM caused a bunch of trouble. =
Basically, we work fine, them either GTK or the window manger changes, =
then we don't work and fix it, then GTK or the window manager changes, =
then ...
"Daniel Spiewak" <djspiewak@hotpop.com> wrote in message =
news:c7ub44$1m9$1@eclipse.org...
Actually, the problem is not that GTK doesn't support non-resizable =
windows. It's that SWT on GTK doesn't support non-resizable windows. =
Look around through some of the native apps in GTK. You look long =
enough, you'll find a non-resizable window (I've found several). The =
only thing I can think of to do about it is to edit the native code =
handling the window creation on GTK and submit a patch.

Daniel

Dima Frunza wrote:=20
achal rastogi wrote:=20

hi guys=20
here is a code snippet for creating dialog shell ..it works fine =
on=20
windows , means it doesnt show maximize,minimize button and you =
cant=20
resize it but on linux it shows maximize,minimize and i can even =
resize it=20
.can anyone suggest me some other way or tell me the problem in =
this ,=20
thanks in advance..=20

final Shell parent =3D getParent();=20
shell =3D new Shell(parent, SWT.DIALOG_TRIM | =
SWT.APPLICATION_MODAL);=20



Excerpt from the Shell's Javadoc:=20

"Note: The styles supported by this class (Shell) must be treated as =
HINTs, since the window manager for the desktop on which the instance is =
visible has ultimate control over the appearance and behavior of =
decorations and modality. For example, some window managers only support =
resizable windows and will always assume the RESIZE style, even if it is =
not set. [...]"=20

And I don't think you can do something about it...=20

------=_NextPart_000_0009_01C438CA.FDCF0A50
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><TITLE></TITLE>
<META http-equiv=3DContent-Type =
content=3Dtext/html;charset=3DISO-8859-1>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>This was fixed a while back.&nbsp; The =
problem was=20
that the window manger was changed and more code was needed to convince =
it to=20
honour the hints.&nbsp; This same code on Solaris under MWM caused a =
bunch of=20
trouble.&nbsp; Basically, we work fine, them either GTK or the window =
manger=20
changes, then we don't work and fix it, then GTK or the window manager =
changes,=20
then ...</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>"Daniel Spiewak" &lt;<A=20
href=3D"mailto:djspiewak@hotpop.com">djspiewak@hotpop.com</A>&gt; =
wrote in=20
message <A=20
=
href=3D"news:c7ub44$1m9$1@eclipse.org">news:c7ub44$1m9$1@eclipse.org</A>.=
...</DIV>Actually,=20
the problem is not that GTK <I>doesn't</I> support non-resizable=20
windows.&nbsp; It's that SWT on GTK doesn't support non-resizable=20
windows.&nbsp; Look around through some of the native apps in =
GTK.&nbsp; You=20
look long enough, you'll find a non-resizable window (I've found=20
several).&nbsp; The only thing I can think of to do about it is to =
edit the=20
native code handling the window creation on GTK and submit a=20
patch.<BR><BR>Daniel<BR><BR>Dima Frunza wrote:=20
<BLOCKQUOTE cite=3Dmidc7shtr$l9h$1@eclipse.org type=3D"cite">achal =
rastogi=20
wrote: <BR>
<BLOCKQUOTE type=3D"cite">hi guys <BR>here is a code snippet for =
creating=20
dialog shell ..it works fine on <BR>windows , means it doesnt show =

maximize,minimize button and you cant <BR>resize it but on linux =
it shows=20
maximize,minimize and i can even resize it <BR>.can anyone suggest =
me some=20
other way or tell me the problem in this , <BR>thanks in advance.. =

<BR><BR>&nbsp;final Shell parent =3D getParent(); <BR>&nbsp;shell =
=3D new=20
Shell(parent, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);=20
<BR><BR></BLOCKQUOTE><BR>Excerpt from the Shell's Javadoc: =
<BR><BR>"Note:=20
The styles supported by this class (Shell) must be treated as HINTs, =
since=20
the window manager for the desktop on which the instance is visible =
has=20
ultimate control over the appearance and behavior of decorations and =

modality. For example, some window managers only support resizable =
windows=20
and will always assume the RESIZE style, even if it is not set. =
[...]"=20
<BR><BR>And I don't think you can do something about it...=20
<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0009_01C438CA.FDCF0A50--
Previous Topic:Right click select a list item
Next Topic:cell color in JFace?
Goto Forum:
  


Current Time: Thu Apr 18 06:41:42 GMT 2024

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

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

Back to the top