You will probably get a better response if you mosey on over to
the GUI forum. When you post your question there,
you should include some more specific information. In particular, it will probably help if you post your exact code rather than trying to paraphrase what it does.
Good Luck
Layne