Re: [fltk.general] FLTK-1.3 group button menus in wrong place whe rearranged

2013-04-08 Thread Duncan Gibson
marty moore remoor...@yahoo.com wrote: I've been playing around with this because I want to create a set of buttons that change to indicate where the user is in the program, instead of using a status bar. Maybe a little odd, but sounded interesting. I'd appreciate any ideas. You could

Re: [fltk.general] FLTK-1.3 group button menus in wrong place whe rearranged

2013-04-08 Thread Albrecht Schlosser
On 08.04.2013 01:27, marty moore wrote: What happens: 1. When the first button is clicked, and the delete option is selected, the other buttons disappear, but the menu is where the clicked button used to be, not where the button is actually located. 2. If the add option is selected from

Re: [fltk.general] FLTK-1.3 group button menus in wrong place whe rearranged

2013-04-08 Thread MacArthur, Ian (Selex ES, UK)
Oh! I was mid-reply, and I see Albrecht has already said most of what I was going to say... So it appears that when a previous button in the group is removed, the button's menu position doesn't get updated. As Albrecht said, the way Fl_Pack behaves in practice is probably not what you want

Re: [fltk.general] FLTK-1.3 group button menus in wrong place whe rearranged

2013-04-08 Thread Albrecht Schlosser
On 08.04.2013 11:58, Albrecht Schlosser wrote: There are two ways to overcome this: .. at least .. (1) I recommend not to use Fl_Pack, ... (2) I don't recommend this one, but it should give you a clue ... (3) You might also recalculate the button positions in your callbacks/functions to