View previous topic :: View next topic |
Author |
Message |
keesp Guest
|
Posted: Wed Jul 13, 2005 12:14 pm Post subject: Typing in Universal edit box AND row selection |
|
|
Hi,
I am trying to create a situation that, when I click a universal edit box at a certain row, this row is ALSO selected. Is there a neat way of achieving this?
Thanks,
Kees |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jul 13, 2005 10:59 pm Post subject: |
|
|
I'm assuming you must have CellEditor.DisplayMode set to Always . If it is set to OnEdit then when you click on the cell to edit the row is in fact selected.
For edit controls such as text boxes and universal edit boxes we strongly recommend using OnEdit because it provides better performance and a more consistent look to the VirtualTree.
If you really do want this behaviour with DisplayMode Always editors then let us know. There is currently a private method in the CellWidget class called OnEditorGotFocus that could be made "virtual protected" to allow you to implement this type of behaviour. It is not desirable in the general case because DisplayMode Always editors are typically used for controls like CheckBoxes where you don't really want selection changing as well. _________________ Infralution Support
Last edited by Infralution on Thu Jul 14, 2005 11:38 pm; edited 1 time in total |
|
Back to top |
|
|
Guest
|
Posted: Thu Jul 14, 2005 10:30 am Post subject: |
|
|
Hi,
OnEdit is perfect! Just the behaviour I needed. My virtual tree has become quite complex by now, and it is fine to see that the control still can facilitate an intuitive style of operation, especially considering the users of our application.
Thanks again,
Kees |
|
Back to top |
|
|
|