Test if modeless dialog closed

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
synthsin75
Posts: 9974
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Test if modeless dialog closed

Post 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. :?
Post Reply