Problem with ToolBar and toolBarButton
Vincent Jacquis <[email protected]> Wed, 27 Apr 2005 07:31:21 +0000 (UTC)
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, i want to use luxor for a big application, and i have a lot of
difficulties ... so please help me (and sorry for my poor english) !!!
- I have a xul description for a tool bar with many instantiations
toolBar1 = createToolBar("myToolBar");
toolBar2 = createToolBar("myToolBar");
, and I want to have a different handling for the two instances, so I can't
use the XulAction because i only get the toolBarButton id and i can't know
from wich tool bar.
When I want explore the child of toolBar, each toolBarButton have a null name
so i can't put a listener direct on the button .
I have a solution, but with a luxor modification in the createButton methode
of ToolBarButtonDef.java I had the following code :
button.setName( getId() );
After, I can explore the childs of my ToolBar, and get the button with the ID.
Is it the good solution ??? So there is a bug in Luxor ??? I have read some
mails with the same problem on other tag ...
I really want to know the good solution, so give me some advices
Best regards
Vincent Jacquis
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix