View previous topic :: View next topic |
Author |
Message |
rp
Joined: 25 Jan 2006 Posts: 6
|
Posted: Fri Mar 10, 2006 7:56 pm Post subject: RowHotStyle & single click node expansion |
|
|
I'd like a way to make the tree behave more like Explorer on XP -- where you hover the mouse over a node and it underlines it (RowHotStyle), and a single click would select and expand a node. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Mar 11, 2006 12:41 am Post subject: |
|
|
You can implement this yourself reasonably easily. Check out the Custom Widget sample project. This implements a Hot Style for rows/cells. By also overriding the CellWidget.OnClick method you could implement the single click expansion.
We will consider implementing a separate HotRowStyle to support this type of user interface more directly. _________________ Infralution Support |
|
Back to top |
|
|
rp
Joined: 25 Jan 2006 Posts: 6
|
Posted: Mon Mar 13, 2006 7:13 pm Post subject: |
|
|
Thanks works well
I also overrode RowWidget.OnClick so the user could click anywhere on the row to expand the node. |
|
Back to top |
|
|
Guest
|
Posted: Tue Mar 14, 2006 5:42 pm Post subject: |
|
|
Just as a FYI -- I also had to implement handling for even/odd row styles as applied to a CellHotStyle. Something to take into account if you do end up adding this. |
|
Back to top |
|
|
|