Page 1 of 1

Test if modeless dialog closed

Posted: Sat Dec 09, 2023 5:34 am
by synthsin75
Anyone have any good ideas on how know when a modeless dialog has been closed?

EDIT: Never mind, I figured it out:

Code: Select all

function scriptDialog:OnOK()
	if (self.d == nil) then
		--dialog has been closed with X button
	end
end
EDIT2: This is not reliable. It only works until a GUI message or two is sent. :?