FLTK logo

[branch-1.4] fafdd5d - Backport d3dca07

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.commit  ]
 
[ Previous Message ] [ Next Message ]

[branch-1.4] fafdd5d - Backport d3dca07 "Matthias Melcher" Jul 16, 2025  
 
commit fafdd5df055ea944297fc9fdd508750bd0d7b693
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Wed Jul 16 12:45:10 2025 +0200
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Wed Jul 16 12:45:10 2025 +0200

    Backport d3dca07
    
    #146: Add access to scrollbars widget in Fl_Help_View
    
    - new methods are Fl_Help_View::scrollbar()
    and  Fl_Help_View::hscrollbar(), taking inspiration from
    Fl_Browser.

 FL/Fl_Help_View.H | 4 ++++
 1 file changed, 4 insertions(+)

diff --git FL/Fl_Help_View.H FL/Fl_Help_View.H
index 6a59e58..bf98c23 100644
--- FL/Fl_Help_View.H
+++ FL/Fl_Help_View.H
@@ -390,6 +390,10 @@ public:
   void scrollbar_size(int newSize) {
       scrollbar_size_ = newSize;
   }
+  /// Return pointer to vertical scrollbar
+  Fl_Scrollbar  *scrollbar() { return &scrollbar_; }
+  /// Return pointer to horizontal scrollbar
+  Fl_Scrollbar  *hscrollbar() { return &hscrollbar_; }
 
   // Check if the user selected text in this view.
   int text_selected();
[ Direct Link to Message ]
 
     
[ Previous Message ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.