Hello,
At the beginning sorry for my mistake. I run the VI on LV2009 and it did not return error so I overlooked the wrong data type.
Regarding the strange look of the window. I have the same configuration: Win XP SP3 and under LV2010 I get a proper look of the window.
The corrected and, this time, commented code is in the attachment.
Toolbar Window.vi