Using a cursor select a layout
I have developed a GUI where I have a 'sidebar' which is basically a cascading menu.
Menus 1-4 would have their own layout, also the options.
I would like to have keyboard control of this sidebar using the cursor keys.
Has anybody developed a system using a similar technique, or anybody got any suggestions on how I would go about this?
Determining the keypress is no problem.
Using the OnKeyPress trigger, should I use a list to order the layouts, a series of if statements (so one script will do for all layouts, catering for every possibility ) , or for each individual layout, have the OnKeyPress trigger execute a script that loads the layout above/below?
Maybe there is another technique?
Obviously the idea is to keep the script as small as possible to improve performance.
Thanks in advance