>Dragan,
>
>Thanks for the idea and sample code! Your description of ALERT.PRG sounds like what I was trying to do.
I hope it helps. I remember few years ago, when I was writing VFP version of it, that exactly that part of the problem took me several ours of wrestling with code to make it work and still look decent.