this is probably something real easy that I have overlooked but I can't find it.
I want to open a 2nd window and then close it. but I want the main window to stay open.
You're going to want to use the CreateWindow command from the BlitzPlus GUI section. Then, chect to see if EventData is $803, then free the window gadget.
If this makes no sense to you then you should probably get some practice with the GUI commands, then continue on your current project.
Thank you,
I had found the freegadget command but was unable to get it to work with the window. After seeing your reply i made a simple code to test it and it worked perfectly. I must have just been doing something wrong, but I was not sure a window was a gadget.
my test,
win1 = CreateWindow("Window 1",0,0,200,200)
win2 = CreateWindow("Window 2",200,0,200,200)
win3 = CreateWindow("Window 3",400,0,200,200)
Repeat
If WaitEvent()=$803 Then FreeGadget ActiveWindow()
Until KeyHit(1)
Cool, glad you resolved your problem.