incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerardo Gómez <gerardo.g...@gmail.com>
Subject X button (the default close botton) on non modal dialogs of UNO-AWT doesn't close the dialog
Date Sat, 12 Nov 2011 06:45:28 GMT
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?.

P.S: I use this method to show or hide a dialog.

public void setVisible(boolean visible){
//        If this dialog is modal...
        if (modal){
            if (visible){
//                ...it uses execute to show the dialog.
                this.xDialog.execute();
            }
            else{
//                ...it uses endExecute to hide the dialog.
                this.xDialog.endExecute();
            }
        }
//        If this dialog is not modal...
        else{
//            ...it uses the setVisible method from the xWindow object.
            this.xWindow.setVisible(visible);
        }
    }

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message