FLTK logo

Re: [fltk.coredev] Fl_Menu_ and Fl_Menu_Item::pulldown incremental overhaul?

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

Re: Fl_Menu_ and Fl_Menu_Item::pulldown incremental overhaul? Albrecht Schlosser Nov 20, 2022  
 
On 11/20/22 19:12 'melcher....@googlemail.com' via fltk.coredev wrote:
... I will limit my request to making Fl_Menu_ derive from Fl_Group. Does anyone see and issue with that?

IMHO it's always a problem if you change the base class of "something" (in this case Fl_Menu_). Users deriving their own classes from any menu subclasses could (at least) be surprised.

I'm not sure if it would do any harm though, it's just my gut feeling that it *could* be an issue. Here's a theory: let's assume a user derived a subclass from Fl_Menu_ and now this is no longer a subclass of Fl_Widget but of Fl_Group. In this case the user class inherits a bunch of *new* methods which Fl_Group brings with it. Hence there are at least potential method name conflicts etc. etc..

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/faf48696-e89a-c4e7-7882-d199f1a0cfc5%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]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'.