[Project_owners] menulist template for sequence

Neil neil at parkwaycc.co.uk
Tue Mar 14 12:43:56 EST 2006


Paul Tomlin wrote:

> Is there a way to generate a menulist, or rather the menuitems for a 
> menupopup in a menulist, for a sequence of characters.
>
> Back to the shortcut selection dialog and although I can hardcode the 
> list of keys that can be used, I'd like to make it cleaner in the code 
> and generate the a-z sequence automatically.

I think you would have to do it in script:
for each (var letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ/\\#")
    menulist.appendItem(letter, letter);


More information about the Project_owners mailing list