View previous topic :: View next topic |
Author |
Message |
CnetChannel Guest
|
Posted: Tue Aug 23, 2005 3:41 pm Post subject: Some features to emulate standard windows tree control |
|
|
1) Selection mode when only text of first column is selected (not all row). Or ability to set text back color in row styles.
2) Editor mode when it editor shows after mouse click on cell text and some pause waiting. Editor closes when enter key pressed.
3) Expend node when + key pressed.
4) Collapse node when - key pressed.
5) Clear selection or change it to another style when tree loses focus. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Aug 23, 2005 11:21 pm Post subject: |
|
|
Some of these you can do more or less now:
1. You can set the CellSelectedStyle for columns other than the main column so that the BackColor and ForeColor are the same as the CellStyle to achieve something similar.
2. The SelectBeforeEdit property should give you this style of behaviour (when coupled with CellEditor DisplayMode of OnEdit). However there is an issue in the current release with this feature. We will be releasing a release that fixes this very shortly.
3/4. You could implement this very simply yourself by handling the KeyDown event (or overriding OnKeyDown) for the control and setting the FocusRow.Expanded = true or FocusRow.Expanded = false as appropriate. We will however also put this on our feature request list for standard behaviour.
5. We will add this to our feature request list. _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
flc.net
Joined: 21 Jun 2005 Posts: 89 Location: Switzerland
|
Posted: Wed Aug 24, 2005 11:44 am Post subject: |
|
|
Infralution wrote: |
...
5. We will add this to our feature request list. |
It's also inportant for us.
Giuseppe |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
CnetChannel Guest
|
Posted: Wed Aug 24, 2005 12:34 pm Post subject: Comments |
|
|
Thanks for quick response!
You wrote: 1. You can set the CellSelectedStyle for columns other than the main column so that the BackColor and ForeColor are the same as the CellStyle to achieve something similar.
I mean another behavour. Now virtual tree drow selected cell using SelectedRowStyle. And I can't separatly set back color for cell and back color for text in cell. So I can't emulate standard windows tree where selected cell back color equal to unselected cell back color and only text back color changed to show selection (not back color under icons and empty space). |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Aug 24, 2005 10:40 pm Post subject: |
|
|
OK. We will have a look at this as well. _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Aug 31, 2005 3:29 am Post subject: |
|
|
Version 2-0-2 of Virtual Tree has now been released. It fixes the issue with the SelectBeforeEdit property. It also include standard expand/collapse behaviour for the +/- numeric keys and left/right arrows.
Selection of text only and changing selection color when focus is changed will have to wait until a more major release. _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Sep 30, 2005 10:33 am Post subject: |
|
|
Version 2.1.0 has now been released and adds a RowSelectedUnfocusedStyle property which allows the selection color to be appropriately changed when the control loses focus. _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Oct 19, 2005 3:11 am Post subject: |
|
|
Version 2.2.0 has now been released and adds a SelectionMode property. This can be set to SelectionMode.MainCellText to select only the text of the main cell (instead of the whole row). This should complete all of the originally requested features for emulating the standard windows tree control. _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|