FLTK logo

[fltk.general] Re: Remove border/shadow of Fl_Choice.H widget

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.general  ]
 
[ Previous Message ] [ New Message | Reply ] [ Next Message ]

Re: Remove border/shadow of Fl_Choice.H widget "'Daniel G.' via fltk.general" Aug 14, 2025  
  Thank you for your help, not satisfying but works well! :)

Manolo schrieb am Donnerstag, 14. August 2025 um 08:48:02 UTC+2:
The Fl_Choice box is presently hardcoded in the 1st statement of its draw() member function which reads:
  Fl_Boxtype btype = Fl::scheme() ? FL_UP_BOX           // non-default uses up box
                                  : FL_DOWN_BOX;        // default scheme uses down box

To bypass that, you could do this:
- define a class for your custom Fl_Choice object(s) derived from Fl_Choice
- orerride the void draw() member function of this class with a copy of Fl_Choice::draw()
to be found in file src/Fl_Choice.cxx
- alter the 1st statement of your custom draw() function, possibly as follows:
  Fl_Boxtype btype = FL_NO_BOX;


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/107fe6b4-4c00-4c37-ab93-032135801c85n%40googlegroups.com.
[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ 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'.