BTW, if in my other post you notice that in line 2 "A window" morphs into "Sample editor" don't let it bother your subconscious. I was wrestling with google groups to post (acting buggy recently, I wonder what's up..), and in the process I cut 'n pasted the wrong stuff from my code. But it acts the same, except for the window having a different title.