This makes the relative position of b1 (following the docs) be (10, 10), but using s.scroll_to(0, 0), actually appears to scroll to 10, 10, making the the first button appear at position 0, 0 of the window. To get the initial appearance, one would need to s.scroll_to(-10, -10). I could be misunderstanding the docs, or is the position of the topleft-most widget the reference for the Fl_Scroll?
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.