FLTK logo

[master] bd7011a - Github #237: scrollbar.align documentation.

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

[master] bd7011a - Github #237: scrollbar.align documentation. "Matthias Melcher" Dec 17, 2021  
 
commit bd7011a1d37d48ff9d371c76bcc1eddc0f3b946c
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Fri Dec 17 20:06:25 2021 +0100
Commit:     GitHub <noreply@github.com>
CommitDate: Fri Dec 17 20:06:25 2021 +0100

    Github #237: scrollbar.align documentation.

 FL/Fl_Browser_.H | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git FL/Fl_Browser_.H FL/Fl_Browser_.H
index af86bc2..3227fa1 100644
--- FL/Fl_Browser_.H
+++ FL/Fl_Browser_.H
@@ -205,6 +205,18 @@ public:
 
   /**
     Vertical scrollbar. Public, so that it can be accessed directly.
+    
+    Use `scrollbar_left()` or `scrollbar_right()` to change what side 
+    the vertical scrollbar is drawn on.
+    
+    Use `scrollbar.align(int)` (see `Fl_Widget::align(Fl_Align)`)
+    to change what side either of the scrollbars is drawn on.
+
+    If the `FL_ALIGN_LEFT` bit is on, the vertical scrollbar is on 
+    the left. If the `FL_ALIGN_TOP` bit is on, the horizontal 
+    scrollbar is on the top. Note that only the alignment flags in 
+    scrollbar are considered. The flags in hscrollbar however 
+    are ignored.
    */
   Fl_Scrollbar scrollbar;
   /**
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

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