Page 3 of 9

PostPosted: Mon Apr 18, 2005 2:06 pm
by HPW
Not sure I understand you right: Do you want to put 20000 items into a treeview. I do not think this is kind of usable interface. What takes to long? The creation of the content-file or the reading?

PostPosted: Mon Apr 18, 2005 2:34 pm
by Bruce
Sorry about my bad english syntax.

I want to make a treeview with all the artists and when you make a click to see all the albums. The datas I take it from a database which having this fields (artist, album, track number, and and other). So I have to sort the artist field to take all the artists and then to query by artist and to take the albums.

I don't know if my explanation is good

PostPosted: Mon Apr 18, 2005 3:54 pm
by Gaev
Don't know if you are aware of the command ...
Code: Select all
dbfFieldToVar "file name" "field name" "variable" "options"

... where ...

a) options can be ...
NoBlanks Do not include records where the specified field is empty.
NoDuplicates Do not include the same field data more than once.

b) when dbfQuery is active, only the matching records participate in this action.

So, you could ...

a) Do a dbfFieldToVar for the "field name" of Artist and display the resulting information in a List or Combo Box.

b) And when the user selects an Artist from the List/Combo Box, do a dbfQuery for this Artist ... the resulting records can then be displayed in a hpwTree structure

... this way, "one very long delay" can be replaced by "one smaller delay" to populate the Artist List/Combo Box and then "additional small delays" whenever the user picks a different artist.

PostPosted: Mon Apr 18, 2005 10:52 pm
by HPW
Following Gaev's advice would allow to add the titles after the artist-select.
You may then run into a bottleneck with 'hpwTreeViewAddChildNode' because you can only add one item per call.

So maybe it is worth to think about some alternate commands like:


Note the plural of the current commands.
They would get a delimited stringlist with nodes.

When time permits I have to think about.

PostPosted: Sun May 01, 2005 1:02 am
by HPW
Just released hpwTreeView 1.29: ... book3.html

Action: hpwTreeViewAddNode, hpwTreeViewAddChildNode, hpwTreeViewInsNode, hpwTreeViewDelNode, hpwTreeViewSetImageIndex, hpwTreeViewSetSelectedIndex accept now a list for multiple entrys at once.

(Lists can be | or CRLF delimited)

PostPosted: Sun May 01, 2005 9:54 pm
by Bruce
Thank you very much for your update

PostPosted: Fri Sep 29, 2006 7:42 am
by HPW
Just released hpwTreeView 1.30: ... book3.html

Action: hpwTreeViewSetVar - Set all custom variable of hpwTreeView
Action: hpwTreeViewVarTemplate - Insert variable template at design time
command-wizards for all commands
Fix for loading a complete imagelist from one Bitmap-file. Now works also from [Embedded].
(For this width must be the nth of the height, so that all images are quadratic)
Eliminated variable [hpwTreeViewLoadFromExe] - Now it is enough to have [Embedded] in the filename.
Action: hpwTreeViewLoad now supports loading from [Embedded] TXT and BIN-formats

PostPosted: Wed Oct 04, 2006 9:49 am
by Boo (Gulf Breeze)

This is a great plugin!

In a future release, would it be possible to add:

1. Hot tracking. (Underline a tree item when mouse hovers over it?)

2. Ability to maintain selected focus when object loses focus. (That is, when a node is selected, the item is highlighted. But if another Neobook object gains control, the selected item in the treelist loses focus.)


- Boo

PostPosted: Wed Oct 04, 2006 9:52 am
by HPW
When the standard Treeview support this features, I will have a look to add them.

PostPosted: Wed Oct 04, 2006 10:38 am
by HPW
Just released hpwTreeView 1.31: ... book3.html

2 new variables OnCreate: [hpwTreeViewHotTrack] + [hpwTreeViewHideSelection]

PostPosted: Wed Oct 04, 2006 12:07 pm
by Boo (Gulf Breeze)
Wow! That was fast! Thank you so much! You are AWESOME!


- Boo

PostPosted: Thu Oct 05, 2006 4:18 am
by HPW
Just released hpwTreeView 1.32: ... book3.html

BugFix: hpwTreeViewVarTemplate was inserting a template with 'SetVar' instead of 'hpwTreeViewSetVar'

PostPosted: Sat Oct 14, 2006 9:09 am
by Boo (Gulf Breeze)
Hi Hans-Peter,

Regarding this excellent plugin, regarding an upcoming update, would it be possible to add an action or variable for clearing a selection? That is, if an item in the tree list is selected, it would be nice to be able to "refresh" the list so that a selection is cleared (while the list remains intact).

As always, thanks!


- Boo

PostPosted: Sat Oct 14, 2006 9:43 am
by HPW
Do you mean to switch [hpwTreeViewHideSelection] introduced in 1.31?
When set to 1 it does not show the selected item when the treeview has not the focus.

PostPosted: Sat Oct 14, 2006 10:05 am
by Boo (Gulf Breeze)
Hi Again,

Yeppers. That is, to switch it back and forth in an already created treeview. It is possible now, but you have to remove the treeview, then recreate it with the variable changed, correct?


- Boo