Hi,

I want to create a part of a menu based on some settings from a
configuration file, so I want it to be created on runtime.
I want to have a menu item something like:

...
"> &Languages" => "Languages",
">> &English" => {-name => "english", -checked => 1, -onClick =>
\&change_interface('en')},
">> &French" => {-name => "French", -onClick => \&change_interface('fr')},
...

How can I insert this piece of code in the menus?
I don't know how many languages are defined in the configuration file, so I
can't write this code staticly in the source, so I should define somehow
only the "Languages" menu item, then insert its submenus at runtime.

Also, how can I check/uncheck the menus while the program runs?

Thank you.



Teddy


Reply via email to