[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: popup-calendar
|
On Tue, 26 Apr 2005 23:07:10 +0200, Michael Permana <mpermana@xxxxxxxxxxx>
wrote:
I'm trying to write a calendar that popups when you click a button. It
sort
of working. But now I want to hide my popup calendar when the user click
on
other places. I put my calendar in a composite. I tried addFocusListener
on
the top composite, but it's not working.
What happens? I think you should be able to use a mechanism similar to
this:
shell.addFocusListener(new FocusAdapter()
{
public void focusLost(FocusEvent e)
{
display.asyncExec(new Runnable()
{
public void run()
{
shell.dispose();
}
});
}
});
Regards
--
Max - rotvel AT bolignet-aarhus DOT dk