Make sure TBSelectDropdown close any visible window it may have when it dies.
Added some missing generic widget attributes to resource reader.