RE: Passing domnode of tree branch element to event handler
"Christian Boulanger" <[email protected]> Mon, 13 Oct 2003 17:45:57 +0200
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <000c01c391a1$185e20d0$0301a8c0@Laptop> |
Responding to my own post: This can be done by including additional tags and event handlers to the "dispText" string. In addition to the text, I have put in an additional icon, a node id, and an onClick event. Not elegant, but works without changing the widget code. C. > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Christian Boulanger > Sent: Monday, October 13, 2003 8:57 AM > To: 'netWindows development discussion list' > Subject: [NW-Devel] Passing domnode of tree branch element to > event handler > > > Hi, > > I would like to visually mark the currently selected branch > of the tree widget, for example, change the background color > of the span element that contains the "dispText". Would it be > possible to attach a reference to the last element that was > clicked on to the tree object (or something simular), so that > the function that handles the click on the branch can do > something with ist style attribute? Or attach the reference > to the "this" reference that can be passed by the "event" caller... > > Thanks, > CB. > > > _______________________________________________ > The netWindows developers list: [email protected] > http://netwindows.org/mailman/listinfo/devel_netwindows.org > > _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org