Menu with scroll ,opengl

Hello Everybody !
Im programing a menu for a modelling software.
The menu has 4 squares in every border of the window. And every menu has several buttons ( small squares ). If you click the button , the button is gone . But now i want to move the menu like the toolbar in windows. when the mouse is near the border, the menu has to appear …but i dont know how i can program these.
Someone know or have idea ???
thank you very much

You have posted in the wrong forum. Try the toolkits forum instead. Dont forget to mention which toolkit you are using (GLUT perhaps?).