From: Joel VanderWerf Date: 2003-03-17T06:35:29+09:00 Subject: Re: |FXRUBY] contextual menu in an Icon List Thien Vuong wrote: > That part about "filemenu.grabKeyboard" is really nice. Thanks much > for the tip also. You're welcome. > If the menu is complex and shows some delay, I'd split the menu pane > instantiation part out, and only bind the create/popup/run to the > right click event. How would you handle dynamic menu content then? > You may also have to manage the selection a bit to give some feedbackk > on which items this is going to run on. > > if !isItemSelected(index) > killSelection > setCurrentItem(index) > selectItem(index) > end > That's a good idea. I was thinking it would be better if right-click didn't change the selection and instead operated only on the clicked-on object, but that's probably bad GUI design. Also, I notice that at least one file browser (konqueror) does change the selection as you suggest, and it agrees with you even in the case of multiple selection.