summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-03 19:11:59 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-11-03 19:11:59 +0100
commit2446ec5d62c5e9a91aeaac300cb45c6926bc293c (patch)
treefe927693b9f45ad5c5b3a3f5204bb84b837c0aec /FL
parent0ebb1135848943c618d865fce4966c559bed47c6 (diff)
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.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Scroll.H2
1 files changed, 2 insertions, 0 deletions
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();