Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Main window focus lost.
Main window focus lost. [message #438697] Wed, 30 June 2004 15:15 Go to next message
Eclipse UserFriend
Originally posted by: cbr.teamlog.com

Hi,

I would like to know which listener I have to add to know when my
application window lost focus (i.e. the user uses another application).
I tried to use a FocusListener but it doesn't work.

Any idea ?
-MaRc
Re: Main window focus lost. [message #438708 is a reply to message #438697] Wed, 30 June 2004 16:47 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
shell.addListener(SWT.Deactivate, new Listener() {
public void handleEvent(Event e) {
System.out.println("deactivate");
}
});

"Takaido" <cbr@teamlog.com> wrote in message
news:cbulkr$imc$1@eclipse.org...
> Hi,
>
> I would like to know which listener I have to add to know when my
> application window lost focus (i.e. the user uses another application).
> I tried to use a FocusListener but it doesn't work.
>
> Any idea ?
> -MaRc
>
>
Previous Topic:DnD to StyledText does not drop text near mouse position
Next Topic:Syntaxhighlighting is no longer copied to the Clipbord in 3.0
Goto Forum:
  


Current Time: Thu Apr 25 16:27:56 GMT 2024

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

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

Back to the top