FLTK logo

STR #1848

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 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1848

Application:FLTK Library
Status:5 - New
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Summary:Menu::insert() does not work correctly when inserting an ItemList (it works like add())
Created By:jspitzak
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files

Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
#1 jspitzak
11:08 Dec 19, 2007
When adding an Item that contains a "/" in the name (indicating that it is an ItemList) to an ItemList with "insert()", the new item was always added at the end of the ItemList.  I fixed this with a one-line change to Menu_add.cxx:

diff Menu_add.cxx.old Menu_add.cxx
<       group = (Group*)append(group, item_label, SUBMENU|flags1, 0);
>       group = (Group*)append(group, item_label, SUBMENU|flags1, insert_here);

This seems to work fine, for me, but I have not extensively tested it.

Return to Bugs & Features | Post Text | Post File ]


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'.