Test if modeless dialog closed
Posted: Sat Dec 09, 2023 5:34 am
Anyone have any good ideas on how know when a modeless dialog has been closed?
EDIT: Never mind, I figured it out:
EDIT2: This is not reliable. It only works until a GUI message or two is sent.
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