Le 03/08/2012 18:07, Matthias Melcher a écrit :
> Unless you plan to change the size of you menus, you can simply allocate an 
> array and assign variables to the members of the array. You should be able to 
> simply allocate multiple items and have an array as a result (if the C 
> compiler is implemented correctly). Even if the size of the menu changes, 
> (for example with a recent files menu), you can use hide() and show() to make 
> menu items disappear temporarily.

Yes, the menu size will change dynamically at runtime (adding macro or 
shell commands directly available in a new menu entry each)

> IMHO best practice is to use FLUID. You can assign variable names to each 
> menu item and use thos later to change labels or shortcut, query values, 
> anything you need.

It seems, is it not possible to have these variables names available 
directly in the Fl_Menu_Bar for example ?

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to