Close window and execute command?!

Hi, I've created a window in which you can set some options, next you have to press the Ok button to execute a global proc which processes the values you entered in the options window, but also closes the optionswindow..... How do I this?!? Now I do get it to execute the proc, but I can't seem to close the window....

hi,

try using

deleteUI myWindow

replace myWindow with the name of your options window. just have this command in the procedure which executes when you hit the 'OK' button :slight_smile:

Thx alot! It works!