Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT.CLOSE ignored for dialogs on Linux/GTK
SWT.CLOSE ignored for dialogs on Linux/GTK [message #457603] Wed, 29 June 2005 00:53 Go to next message
Joe Mihalich is currently offline Joe MihalichFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

Is it possible to have a dialog on GTK that does not have a close
button on the top right of the dialog frame? When I try not specifying
SWT.CLOSE, it's ignored, and a close box shows up anyway.
(Btw, I'm using the JFace Dialog class, not the SWT dialog, but
I'm sure the same problem exists).

If it's not possible to get rid of the close button on GTK, then
I have another question.

What is the proper method of handling the event that should be
generated when the user clicks the close button? I don't seem to
get a notification on the buttonPressed method of the JFace Dialog
class when you press that close button.

Thanks,
Joe
Re: SWT.CLOSE ignored for dialogs on Linux/GTK [message #457633 is a reply to message #457603] Wed, 29 June 2005 14:55 Go to previous messageGo to next message
Bahadir Yagan is currently offline Bahadir YaganFriend
Messages: 21
Registered: July 2009
Junior Member
Check the snippets at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets

with the specific example
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet99.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

For short you have to use the untyped event SWT.CLOSE

Bahadir

Joe Mihalich wrote:
> Hi,
>
> Is it possible to have a dialog on GTK that does not have a close
> button on the top right of the dialog frame? When I try not specifying
> SWT.CLOSE, it's ignored, and a close box shows up anyway.
> (Btw, I'm using the JFace Dialog class, not the SWT dialog, but
> I'm sure the same problem exists).
>
> If it's not possible to get rid of the close button on GTK, then
> I have another question.
>
> What is the proper method of handling the event that should be
> generated when the user clicks the close button? I don't seem to
> get a notification on the buttonPressed method of the JFace Dialog
> class when you press that close button.
>
> Thanks,
> Joe
>
>
Re: SWT.CLOSE ignored for dialogs on Linux/GTK [message #457849 is a reply to message #457603] Tue, 05 July 2005 20:25 Go to previous message
Billy Biggs is currently offline Billy BiggsFriend
Messages: 94
Registered: July 2009
Member
> Is it possible to have a dialog on GTK that does not have a close
> button on the top right of the dialog frame? When I try not specifying
> SWT.CLOSE, it's ignored, and a close box shows up anyway.
> (Btw, I'm using the JFace Dialog class, not the SWT dialog, but
> I'm sure the same problem exists).

It depends on your window manager as to whether it will honour the
request. I believe some window managers will always give a close button.

-Billy
Previous Topic:How to group checkbox?
Next Topic:Debug buttons in KDE
Goto Forum:
  


Current Time: Thu Apr 25 16:54:17 GMT 2024

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

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

Back to the top