List all wave in current and sub folders

Hi All,

This is my first request on the forum. Although I have used Igor for some time now.
I am trying to find a way to have the popup option on a prompt to list all existing waves. I was hoping to use WaveList but that only shows waves in the current data folder. My waves are inside sub folders.
Is there a way I can pass a list to prompt that contains a list of all waves in the experiment?
For an example of a listbox in a control panel that allows the user to select a wave from any data folder, choose File->Example Experiments->Programming->WaveSelectorWidgetExample.