The hstylus.dll can disable the "X" on desired windows and/or dialogs. Once you've downloaded the DLL drop it to your desired DLL folder then as follows:
Code:
dialog example {
title "Example"
size -1 -1 70 36
option dbu
text "This Is An Example Dialog", 1, 3 14 64 8, center
button "Close", 2, 38 25 31 10
}
on *:dialog:example:init:*:{
//dll system\dlls\hstylus.dll x_desabilitar $dialog(example).hwnd
}
The DLL is aviable at MircScripts.org and comes with a "How To" text file.