in reply to ListBox Functionality
I'm assuming that you are working with Tk? You can create your own custom widget with the functionality you want. If you are not familiar with how to do this, then I suggest you do some reading. Here are a couple of links that will point you in the right direction.
http://www.perltk.org/
http://hell.org.ua/Docs/oreilly/
Hope this helps.