View previous topic :: View next topic |
Author |
Message |
gregoryagu
Joined: 12 Dec 2007 Posts: 78
|
Posted: Mon Feb 11, 2008 5:44 pm Post subject: SelectedRow vs FocusRow |
|
|
Is there any difference between the SelectedRow and the FocusRow? I don't quite understand the difference between the two.
What I am trying to do is determine when the Tree is or is not selected in general, but I don't see a VirtualTree.Selected property.
Greg |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Feb 11, 2008 9:18 pm Post subject: |
|
|
If you only have single selected row then it will also be the focus row. When you have a multiple selection however the two may be different. The SelectedRow will be the first row selected where as the FocusRow will be the row with current keyboard focus (usually also selected). The FocusRow is used for keyboard navigation.
Quote: | What I am trying to do is determine when the Tree is or is not selected in general, but I don't see a VirtualTree.Selected property. |
I'm not sure what you mean by this. The SelectedRow (or SelectedRows) property will tell you if there is a row(s) currently selected. The standard .NET ContainsFocus property will tell you if VirtualTree (or one of its editor controls) has keyboard focus. _________________ Infralution Support |
|
Back to top |
|
|
gregoryagu
Joined: 12 Dec 2007 Posts: 78
|
Posted: Wed Feb 13, 2008 8:46 pm Post subject: |
|
|
Thanks. The ContainsFocus was the property I was looking for.
Greg |
|
Back to top |
|
|
|