Hiding Close Button in Dialog

Is it possible to hide the close button in the titlebar of a dialog?

Nope, not possible. When it is a dialog you created (formInDialog) you can sort of ‘disable’ it. The subject is more than once discussed on the forum or in Servoy Magazine…

Johan Compagner suggested this method:

open dialog script:

x= 0;
application.showFormInDialog( forms.addresses)

then the onHide script:

application.output(“onhide”);
x++;
return x == 2;

then the onHide is called and i have to press the close button twice to close the dialog (as i want to)

Graham Greensall
Worxinfo Ltd