Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Shell Hide On Close
Shell Hide On Close [message #464270] Sat, 19 November 2005 19:06 Go to next message
Eclipse UserFriend
Originally posted by: simon.guertin.usherbrooke.ca

Hi there, I am using the Tray and I want to minimize my Main Shell on
the Close button click of the Main Shell. I added a Shell Adapter and
catched the Shell Closed Event and I set the Doit to false and I then
set my shell to shell.SetVisible(false);
I only want to be able to click my application but using the Tray
rightclick/quit action.

Is this the clean way to do it?

I also need my application not to block a windows shutdown process. What
is the event that SWT receives when windows is shuting down? I had this
prblem when I was implementing a similar application in Borland C++ so I
had to allow the shutdown of the application when it was a close event
on shutdown.


thanks

Simon
Re: Shell Hide On Close [message #464292 is a reply to message #464270] Sun, 20 November 2005 19:42 Go to previous messageGo to next message
Joachim Schreibmaier is currently offline Joachim SchreibmaierFriend
Messages: 89
Registered: July 2009
Member
hi,
"Simon Guertin" <simon.guertin@usherbrooke.ca wrote:
> Hi there, I am using the Tray and I want to minimize my Main Shell on the
> Close button click of the Main Shell. I added a Shell Adapter and catched
> the Shell Closed Event and I set the Doit to false and I then set my shell
> to shell.SetVisible(false);
> I only want to be able to click my application but using the Tray
> rightclick/quit action.
>
> Is this the clean way to do it?
>
> I also need my application not to block a windows shutdown process. What
> is the event that SWT receives when windows is shuting down? I had this
> prblem when I was implementing a similar application in Borland C++ so I
> had to allow the shutdown of the application when it was a close event on
> shutdown.

maybe this link helps you to solve the problem:
http://lokeshshah.com/blog/?p=93

hth
--
Joachim
Re: Shell Hide On Close [message #464356 is a reply to message #464292] Tue, 22 November 2005 01:10 Go to previous message
Eclipse UserFriend
Originally posted by: simon.guertin.usherbrooke.ca

Thanks for the hint but I think I will stick with my solution. It looks
to work fine.
Joachim Schreibmaier wrote:
> hi,
> "Simon Guertin" <simon.guertin@usherbrooke.ca wrote:
>
>>Hi there, I am using the Tray and I want to minimize my Main Shell on the
>>Close button click of the Main Shell. I added a Shell Adapter and catched
>>the Shell Closed Event and I set the Doit to false and I then set my shell
>>to shell.SetVisible(false);
>>I only want to be able to click my application but using the Tray
>>rightclick/quit action.
>>
>>Is this the clean way to do it?
>>
>>I also need my application not to block a windows shutdown process. What
>>is the event that SWT receives when windows is shuting down? I had this
>>prblem when I was implementing a similar application in Borland C++ so I
>>had to allow the shutdown of the application when it was a close event on
>>shutdown.
>
>
> maybe this link helps you to solve the problem:
> http://lokeshshah.com/blog/?p=93
>
> hth
Previous Topic:[MenuItem] - Text Color
Next Topic:SWT : Button & Image
Goto Forum:
  


Current Time: Thu Apr 25 18:56:35 GMT 2024

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

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

Back to the top