[Gambas-user] button x

Rob Kudla sourceforge-raindog2 at ...94...
Wed Dec 21 06:16:42 CET 2005


On Tue December 20 2005 22:35, Ignatius Syofian wrote:
> If i use STOP EVENT in Form_Close method. If i click Exit
> button i created (containts command Me.close) it not work
> anymore.

OK, here's some pseudo-code to give you an idea.

public OKToClose as Boolean

sub Form_Open
	OKToClose = False
end

sub Exitbutton_Close
	OKToClose = True
	Me.Close
end

sub Form_Close
	If Not OKToClose Then STOP EVENT
end

Rob




More information about the User mailing list