> David Allen wrote: > > I have a group that fills the main window. The resizable widget of the > > group is a drawing area where geometric concepts are illustrated; the > > lengths of its horizontal side and vertical side must remain in a fixed > > ratio. > > > > When I move the right edge of the main window, I would like for the bottom > > edge of the main window to automatically change accordingly. > > Similarly, if I move the bottom edge of the main window ... > > > > I would appreciate hints as to how to do this. Maybe even point me to an > > example where something similar is done. > > You should be able to do this by overriding the resize() method > (derive a class from Fl_Window or Fl_Double_Window). > > That method is passed the xywh values which you can then > reinterpret to do anything you like to change the xywh values, > and then pass them on down to Fl_Window::resize(x,y,w,h) to > do the actual sizing. > > I don't have a simple example of just that, but assuming > you know how to derive from Fl_Window and override methods, > it should be easy. Thanks. With some study I think I can do this By the way, I have learned so much from the examples on your web site.
_______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

