Shell Hide On Close [message #464270] |
Sat, 19 November 2005 19:06 |
Eclipse User |
|
|
|
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 #464356 is a reply to message #464292] |
Tue, 22 November 2005 01:10 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03444 seconds