[[ Bug 21570 ]] Tree View Widget - select new elements automatically - #6676
Conversation
The proposed change is the add a new property to the tree view widget `hiliteNewElement` which when true will cause the widget to automatically highlight the added key. That will yield 2 messaged - `dataChanged` and `hiliteChanged`.
|
@bwmilby I'm wondering about ensuring the highlighted node is visible if there is automatic highlighting |
If you |
|
Hmm... what about a property to control it. |
|
Sounds good. I should be able to have something this weekend. |
The tree view widget now has the ability to scroll the selected row into view. If `true`, this will happen when setting the **arrayData**, setting the **hilitedElement**, and when adding a new row (when **hiliteNewElement** is `true`). One property has been added to achieve this: * **scrollHilitedElementIntoView**: either `true` or `false` The default value is `false` to match the behavior of previous versions of the widget. When selecting a row that is partially visible, the view will be adjusted so that the full row is visible. When changing the **readOnly** property, the view will only change if the value is being set to `true` and the `Add new element` row is currently visible.
|
@montegoulding Here's a demo of how the new property impacts the widget. |
|
This seems great @bwmilby ! |
| @@ -0,0 +1,19 @@ | |||
| # Properties | |||
|
|
|||
| The tree view widget now has the ability to scroll the selected row into | |||
There was a problem hiding this comment.
@bwmilby I think you should discuss the new property hiliteNewElement here also.
There was a problem hiding this comment.
Added property to the note.
|
@livecode-vulcan review ok b7e4a49 |
|
💙 review by @montegoulding ok b7e4a49 |
[[ Bug 21570 ]] Tree View Widget - select new elements automatically The proposed change is the add a new property to the tree view widget `hiliteNewElement` which when true will cause the widget to automatically highlight the added key. That will yield 2 messaged - `dataChanged` and `hiliteChanged`.
|
😞 test failure b7e4a49
|
|
@livecode-vulcan retry b7e4a49 |
[[ Bug 21570 ]] Tree View Widget - select new elements automatically The proposed change is the add a new property to the tree view widget `hiliteNewElement` which when true will cause the widget to automatically highlight the added key. That will yield 2 messaged - `dataChanged` and `hiliteChanged`.
|
😎 test success b7e4a49
|


The proposed change is the add a new property to the tree view widget
hiliteNewElementwhich when true will cause the widget to automatically highlight the added key. That will yield 2 messaged -dataChangedandhiliteChanged.