Fixes for the user functions launched from the tree part of the spin viewer window on MS Windows.
The spin viewer window is now set as the parent, so that the main GUI window does not come to the front.
Authored by: bugman 2011-09-19
Parent: [r14695]
Child: [r14697]