incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ariel Constenla-Haile <ariel.constenla.ha...@gmail.com>
Subject [API] Re: X button (the default close botton) on non modal dialogs of UNO-AWT doesn't close the dialog
Date Sat, 12 Nov 2011 09:28:54 GMT
Hello Gerardo,

On Sat, Nov 12, 2011 at 12:45:28AM -0600, Gerardo Gómez wrote:
> Hello.
> I have a problem with the implementation of the dialogs of UNO-AWT. When i
> show the dialog as non-modal, using the setVisible method from the XWindow
> interface, the showed dialog doesn't close or hides when i press the "x"
> button (the default close button of all windows). Is it possible to close
> the dialog with the default close button, or as a modal dialog that method
> doesn't work?.

the css.awt.XDialog is a css.awt.XTopWindow, add
a css.awt.XTopWindowListener and when its  windowClosing() gets invoked
you can call css.awt.XWindow.setVisible( false ) and then dispose.

This should work (== I didn't test it).

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Mime
View raw message