From 2446ec5d62c5e9a91aeaac300cb45c6926bc293c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 3 Nov 2022 19:11:59 +0100 Subject: Implement Fl_Scroll::on_insert() This fixes the scrollbar order when children are inserted rather than at some indefinite time later, for instance in draw(). This commit will very likely make Fl_Scroll::fix_scrollbar_order() obsolete but this method is kept as is for tests and verification. --- FL/Fl_Scroll.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Scroll.H b/FL/Fl_Scroll.H index 9c5549e46..1d4934389 100644 --- a/FL/Fl_Scroll.H +++ b/FL/Fl_Scroll.H @@ -146,6 +146,8 @@ protected: // (STR#1895) protected: + virtual int on_insert(Fl_Widget*, int); + // virtual int on_move(int, int); // Not (yet) implemented. Do we need this? void fix_scrollbar_order(); void bbox(int&,int&,int&,int&) const; void draw(); -- cgit v1.2.3