Line drawing in GLUI Button click

Dear All,
I am using openGL and GLUT with GLUI.I want to draw a line when I click GLUI button which is situated in GLUI Subwindow on the left hand side.How to call this line drawing in button click.

Thanks in advance.