Joe wrote: > FLTK Gurus, > > Got a basic Q: > > Is there something a sort of compound widget that > automatically puts a scroll-bar when the image is > large and takes care of the scrolling? > > If its not there yet, can someone point me on how to build > one quickly with existing FLTK lib? I definitely need an > OpenGL flavor to it (i.e glut & probably FL_GL_Window) > > Thanks in advance > -J
A while ago, there was another message like this, at that time I began writing an Fl_Gl_Window based widget which has scrollbars to control the camera position. I have a version that seems to work here: http://members.optusnet.com.au/msephton/fltk/scroll_win.zip The demonstration program displays a tga image of a map of the earth, on a quad in openGL, and the top level window is resizable, and when you resize the top level window so its smaller than the image, the scrollbars appear, so the user can browse the full extent of the image. If the openGL consisted of more than a single image, that would be fine too, the technical detail is that the scrollbar allows the user to browse the full extent of the openGL frame, which has a fixed size set by the user. In this simple demonstration, the openGL frame is set to coincide with the frame of the image. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

