FLTK logo

Re: [fltk.coredev] macOS Fl_Sys_Menu_Bar's clear()

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: macOS Fl_Sys_Menu_Bar's clear() Manolo May 13, 2022  
 

Le samedi 14 mai 2022 à 02:26:12 UTC+2, ggar...@gmail.com a écrit :
Okay. I see what the problem is. Fl_Menu_ does not define clear(), add(), etc. as virtual functions, so calling them from Fl_Menu_ has no effect. Fl_Menu_Button and Fl_Menu_Bar are just define as Fl_Menu_.
It is not clear to me why it works the first time I run the code on Fl_Sys_Menu_Bar, as it should never work.

May I request an enhancement to turn the Fl_Menu_ functions into virtuals?
Virtual function Fl_Menu_Bar::update() can be used to transfer to an Fl_Sys_Menu_Bar object operations done to it
using other, non-virtual, member functions.

--
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/eda7e973-547e-4d73-8e07-db19ce0ae57an%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-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.