diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-11-03 19:11:59 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-11-03 19:11:59 +0100 |
| commit | 2446ec5d62c5e9a91aeaac300cb45c6926bc293c (patch) | |
| tree | fe927693b9f45ad5c5b3a3f5204bb84b837c0aec /FL/Fl_Scroll.H | |
| parent | 0ebb1135848943c618d865fce4966c559bed47c6 (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/Fl_Scroll.H')
| -rw-r--r-- | FL/Fl_Scroll.H | 2 |
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(); |
