|
|
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 ] | |
|
| |