> Anyway, the Message shortcuts are stored (sorted) in a
> Message menu.  When
> they click on the message shortcut the text of the message is
> placed in a
> message box for them.  That part all works.  The user is able
> to add their
> own message shortcuts to the menu but they don't appear there
> until the
> program is restarted because the .ini file is read when the program
> runs.  Is there a way to automatically add these shortcuts to
> the menu
> without having to restart the program?
>


Depends on what you want to happen. Do you want their changes to be saved to the .ini file or should the changes only last for that session. My suggestion is that you localize the building of the menu after they've made their edit (maybe a button event?) and store the shortcut/description relationship in a hash and write (or don't write) it to the .ini after the edit.

Another way to do it would be the brute force method, where they make the changes, save to .ini, and then restart the script (exec script.pl).