Re: Widget lookup
Gerald Bauer <[email protected]>
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Ross, I really would appreciate if you could summarize your findings so far. > Found the undocumented trick for menubars! > > Unlike the Ramses example in which the > menubar is more a cosmetic showpiece, if > you want menubars to actually trigger > actions in your application, then you > need to create the menubar *after* you > have created your content and populated > the XulManager with the necessary > XActions - menubars are "thin" widgets > that do pure lookup with no real creation > abilities. That's right. You need to register the XUL actions before you create the menubar. As an example check out the notepad demo in the ramses suite. Although some Ramses examples only have "dummy" menus, others such as forms, notepad, etc. have real working menus. > Now if I can only find the hook to trigger > tabbox tab actions :-) I guess the best solution so far is to add an id to the tabbox and them look it up by walking the top-level box component tree using Swing methods. See Daves mails for details. I will add his code and suggestions in the upcoming Beta 8 Refresh (or in Beta 9 depending how it works out). - Gerald ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf