have a look at http://www.noeska.com/dogl/glgui.aspx before reinventing the wheel...