Referring to this (http://www.codeproject.com/Articles/20286/GLUI-Window-Template) wonderful tutorial.