Gui newbie :)

BlitzMax Forums/MaxGUI Module/Gui newbie :)

col(Posted 2011) [#1]
Hiya all,

I have a 'main' editor window, that when a button is pressed, it opens a smaller worker window. What's the correct procedure to close the 'worker' window after I'm finished altering data. Most examples I looked at simply use End on EVENT_WINDOWCLOSE, which is not what I want to do. I just want to close the window using the correct procedure.

Cheers :P


GfK(Posted 2011) [#2]
Hidegadget() or freegadget()


col(Posted 2011) [#3]
Thanks.
Anothet quesion... Does freegadget automatically call any child gadgets to free them correctly too? Or I do it myself?


GfK(Posted 2011) [#4]
Erm, pass!


Jesse(Posted 2011) [#5]

Remove a gadget and free its resources.



I am guessing that is what that means. if not than I have been doing it wrong.
-from a newbie to a newbie
I have been converting( more or less starting from scratch) my tile map editor.
I don't know if it will help you or misguide you but here it is anyway:



"newMapGui.bmx"


can use the graphics in this post: http://www.blitzmax.com/Community/editpost.php?post=1117659

You or others might find something that might help me also( don't have too).

Last edited 2011

Last edited 2011


jsp(Posted 2011) [#6]
Does freegadget automatically call any child gadgets to free them correctly too?

Yes


col(Posted 2011) [#7]
Thanks jsp. All clear now.

Thanks for posting that code Jesse. As a gui newbie, all variations of how to get it done are a great help for the learning curve.

Cheers all.