using Scrollbar for panning in my Graphics Editor
-
Dear All Regards! i m going to develop a Graphics Editor in C# and OpenGL, now i am going to display my drawing on a canvas, and the canvas display area variables r display_min_x display_max_x display_min_y:rolleyes: display_max_y and i m going to display using the following code for zooming ------------------code------------------------ GL.GLMatrixMode(GL.GL_Projection); GL.GLLoadIdentity(); GL.gluOrtho2D(display_min_x,display_max_x,display_min_y,display_max_y); ------------------------------------------------------------------------- now i want that when during zooming my drawing exceeds the drawing area limits then Scrollbar becomes visible (just like in all professional applications). so now i add scrollbar for panning, remember i am not using picturebox nor panel, simply canvas which i already has been set through coordinates system, so plz help me to add Scrollbar in my editor. Regards
david