Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Difference between form.hide() and form.close()?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Thu May 19, 2016 3:08 pm    Post subject: Difference between form.hide() and form.close()? Reply with quote

What is the difference between the two functions? After executing CreateForm() and form.close() too many times in Lua Engine, I get Error:C stack overflow while form.hide() does not?
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Thu May 19, 2016 6:21 pm    Post subject: Reply with quote

form.close() will execute (if defined) OnClose event.

If you create a form manually, define OnClose properly:

Code:
local myForm = createForm(false)
myForm.Caption = 'title'
...
...
...
myForm.OnClose = function (sender)
                   return caFree
                 end



Quote:
Closing a form can have several meanings:

caNone: do nothing (don't close)
caHide: hide the form (default for modal forms)
caFree: destroy the form
caMinimize: minimize the form (MDI child default)

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites