FLTK logo

[master] d73327e - Document that Fl_Help_View can't be used with FL_NO_BOX

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] d73327e - Document that Fl_Help_View can't be used with FL_NO_BOX "Albrecht Schlosser" Jul 14, 2022  
 
commit d73327e18167f00aca8e6a8b62fd6105139914d8
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Jul 14 20:05:21 2022 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Jul 14 20:05:21 2022 +0200

    Document that Fl_Help_View can't be used with FL_NO_BOX
    
    This widget overrides FL_NO_BOX internally by FL_UP_BOX for all
    practical purposes, e.g. draw(). This has been this way since
    its initial release and can't be changed.

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

diff --git FL/Fl_Help_View.H FL/Fl_Help_View.H
index 4df878b..32e993a 100644
--- FL/Fl_Help_View.H
+++ FL/Fl_Help_View.H
@@ -190,6 +190,10 @@ struct Fl_Help_Target {
      - Yacute yacute
      - yen Yuml yuml
 
+  \note You can't effectively set the box() to FL_NO_BOX, this would result
+    in FL_DOWN_BOX being used as the boxtype of the widget. This is unexpected
+    but can't be changed for backwards compatibility. If you don't want a frame
+    around the widget you can use FL_FLAT_BOX instead.
 */
 class FL_EXPORT Fl_Help_View : public Fl_Group {        // Help viewer widget
 
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'.