Dialog Exit Icon

Dialog Exit Icon

Hi guys,

I've just started implementing a login-box using dialogs and am wondering if there is any way to remove/disable the functionality of the X in the top corner? Or at least a built in method to attach a click event to this? As it allows the user to simply ignore the box when I am wishing it to be mandatory.

Many thanks