AnsweredAssumed Answered

Using a cursor select a layout

Question asked by Frinholp on Apr 8, 2011
Latest reply on Apr 8, 2011 by Frinholp

Title

Using a cursor select a layout

Post

Hi all

I have developed a GUI where I have a 'sidebar' which is basically a cascading menu.

e.g

Menu

Menu1
  Option1
  Option2
  Option3
Menu2
Menu3
Menu4

or.....

Menu1
Menu2
Menu3
  Option1
  Option2
Menu4

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

Lee

Outcomes