seems broken. If lines 159, 163, 167 are commented out
item->image(L_document_pixmap); // note: this clobbers the item's label()
item->image(L_folder_pixmap);
item->image(L_redx_pixmap);
then none of the Fl_Multi_Label images are displayed. Even the label images under File menu are not displayed. *BUT* if even one of the above item->image lines is executed then all the images under File menu are displayed. Looking at the original example file
created by Greg E. I noticed that there are a couple lines removed in function AddItemToMenu in the current example in the git repo.
Specifically, the original code has these lines which were removed.
line 118
const char *itemtext = item->label();
line 121
item->image(*pixmap);
and the edit to line 132
ml->labelb = itemtext;
If I apply these changes, restoring the original code, then the example seems to work properly again. Wondering why those lines were removed from the original example?
The reason for my query is that we are trying to add Fl_Multi_Label support to pyFltk but we are trying to hide the implementation of function AddItemToMenu by adding
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.