Patch to refresh the treeview pressing F5.

Discuss development issues and submit patches here
Post Reply
ajs
Posts: 409
Joined: Mon Jul 05, 2010 6:37 pm

Patch to refresh the treeview pressing F5.

Post by ajs »

Patch to refresh the treeview pressing F5.

If the treeview has the focus when F5 is pressed, the children of the currently selected item are refreshed. This is done by collapsing and re-expanding the currently selected item, so be aware that if more than one sub-level have been expanded they will be collapsed.

2011/01/19 Patch file updated
Attachments
patch_21__v163.7z
(1.37 KiB) Downloaded 543 times
ajs
Posts: 409
Joined: Mon Jul 05, 2010 6:37 pm

Re: Patch to refresh the treeview pressing F5.

Post by ajs »

2011/01/19 Patch file updated

Refresh of a treeview node is implemented as a collapse+expand of the selected node. If the selected item is not expanded, there is nothing to do. The previous version of this patch would have expanded the item and shown its children.
David Erceg
Site Admin
Posts: 933
Joined: Sat Apr 18, 2009 1:46 am

Re: Patch to refresh the treeview pressing F5.

Post by David Erceg »

I don't support making AddRoot() public. Move the update logic into the treeview.
ajs
Posts: 409
Joined: Mon Jul 05, 2010 6:37 pm

Re: Patch to refresh the treeview pressing F5.

Post by ajs »

David Erceg wrote:I don't support making AddRoot() public. Move the update logic into the treeview.
Ok, I will rework the patch
ajs
Posts: 409
Joined: Mon Jul 05, 2010 6:37 pm

Re: Patch to refresh the treeview pressing F5.

Post by ajs »

Hi David,
I have reworked the patch and moved the refresh logic inside the Treeview.

Patch against commit 186
Attachments
patch_21__v186.7z
(1.25 KiB) Downloaded 506 times
Post Reply