I didn't use a script for my edit box frame. If you set the panel to parent to the ChatFrameEditBox, the panel will appear and disappear when it needs to do so. I also have my panel anchored to the ChatFrameEditBox.
Ahh, most excellent, works now. Thanks Andy.