That version made more sense. If I split the MEGAWIDGET and save it as a *pm file, and call it, it works fine.
It returns the key that was chosen. When I stick it in the program I am working on, it fails...
It displays the widget and data, but the line below fails to execute.
defined $selection and print "'$selection' was selected\n";
Here you print '$selection' after 'MainLoop;'
In the program. all the GUI stuff is in a subroutine called 'create_ui', which is executed
after 'MainLoop;'. Will this mess anything up? An idea here?
Anyways, I been learning a lot during this adventure -- thanks.