CloseWindow() and Freegadget()

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Denis.

Hi all,

did CloseWindow(#window1) free all gadgets from the window (#window1) or did i use freegadget() for all #window1 Gadgets before to use CloseWindow() :). In this case, #window1 is not the main window.


Thanks.

Denis
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.

Closing a window will destroy al the gadgets, as you destroy the GadgetList for that window.

Regards,

Berikco

http://www.benny.zeb.be/purebasic.htm
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Denis.

Thanks Berikco for this info. :)

And thanks too for your tool! :)


Denis
Post Reply