Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Detecting impending app minimization
Detecting impending app minimization [message #458961] Wed, 27 July 2005 12:59 Go to next message
Mike Higginbotham is currently offline Mike HigginbothamFriend
Messages: 22
Registered: July 2009
Junior Member
I have asked this in the RCP forum but possibly it is not an RCP-only
question....

I have an RCP app. When the user clicks on the _ in the window title bar
to minimize the window, we may need to keep the minimization from
occurring. I can capture the shellIconified event but that occurs after
the minimization has been done and setting ShellEvent.doit to false has
no effect (as far as I can tell). We need to intercept this before the
minimization and in such a way that we can keep the minimization from
occurring.

Alternatively, is there a way to remove/disable the minimize button from
the RCP window? This is not perfect but sometimes one has to compromise.

Thanks,
Mike Higginbotham
Re: Detecting impending app minimization [message #459162 is a reply to message #458961] Tue, 02 August 2005 19:09 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You can remove the button by not specifying the SWT.MIN styl when you create
the shell.

"Mike Higginbotham" <higginmi@us.ibm.com> wrote in message
news:dc80el$sms$1@news.eclipse.org...
> I have asked this in the RCP forum but possibly it is not an RCP-only
> question....
>
> I have an RCP app. When the user clicks on the _ in the window title bar
> to minimize the window, we may need to keep the minimization from
> occurring. I can capture the shellIconified event but that occurs after
> the minimization has been done and setting ShellEvent.doit to false has
> no effect (as far as I can tell). We need to intercept this before the
> minimization and in such a way that we can keep the minimization from
> occurring.
>
> Alternatively, is there a way to remove/disable the minimize button from
> the RCP window? This is not perfect but sometimes one has to compromise.
>
> Thanks,
> Mike Higginbotham
Previous Topic:Ole + Acrobat = NPE
Next Topic:Shell doesn't restore when clicking in taskbar
Goto Forum:
  


Current Time: Thu Apr 18 10:33:30 GMT 2024

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

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

Back to the top