Source language: Translate to:

hpwtreeview

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Postby HPW » Mon Apr 18, 2005 2:06 pm

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?
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Bruce » Mon Apr 18, 2005 2:34 pm

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
Bruce
 
Posts: 25
Joined: Mon Apr 04, 2005 2:26 am
Location: Texas

Postby Gaev » Mon Apr 18, 2005 3:54 pm

Skias:
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.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby HPW » Mon Apr 18, 2005 10:52 pm

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:

hpwTreeViewAddNodes
hpwTreeViewAddChildNodes
hpwTreeViewDelNodes

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

When time permits I have to think about.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Sun May 01, 2005 1:02 am

Just released hpwTreeView 1.29:

http://www.hpwsoft.de/anmeldung/html1/n ... book3.html

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

(Lists can be | or CRLF delimited)
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Bruce » Sun May 01, 2005 9:54 pm

Thank you very much for your update
Bruce
 
Posts: 25
Joined: Mon Apr 04, 2005 2:26 am
Location: Texas

Postby HPW » Fri Sep 29, 2006 7:42 am

Just released hpwTreeView 1.30:

http://www.hpwsoft.de/anmeldung/html1/n ... 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
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Boo (Gulf Breeze) » Wed Oct 04, 2006 9:49 am

Howdy!

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.)

Thanks!

- Boo
User avatar
Boo (Gulf Breeze)
 
Posts: 99
Joined: Sun May 01, 2005 7:37 am
Location: Gulf Breeze, Florida

Postby HPW » Wed Oct 04, 2006 9:52 am

When the standard Treeview support this features, I will have a look to add them.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Wed Oct 04, 2006 10:38 am

Just released hpwTreeView 1.31:

http://www.hpwsoft.de/anmeldung/html1/n ... book3.html

2 new variables OnCreate: [hpwTreeViewHotTrack] + [hpwTreeViewHideSelection]
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Boo (Gulf Breeze) » Wed Oct 04, 2006 12:07 pm

Wow! That was fast! Thank you so much! You are AWESOME!

Cheers,

- Boo
User avatar
Boo (Gulf Breeze)
 
Posts: 99
Joined: Sun May 01, 2005 7:37 am
Location: Gulf Breeze, Florida

Postby HPW » Thu Oct 05, 2006 4:18 am

Just released hpwTreeView 1.32:

http://www.hpwsoft.de/anmeldung/html1/n ... book3.html

BugFix: hpwTreeViewVarTemplate was inserting a template with 'SetVar' instead of 'hpwTreeViewSetVar'
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Boo (Gulf Breeze) » Sat Oct 14, 2006 9:09 am

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!

Cheers,

- Boo
User avatar
Boo (Gulf Breeze)
 
Posts: 99
Joined: Sun May 01, 2005 7:37 am
Location: Gulf Breeze, Florida

Postby HPW » Sat Oct 14, 2006 9:43 am

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.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Boo (Gulf Breeze) » Sat Oct 14, 2006 10:05 am

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?

Thanks,

- Boo
User avatar
Boo (Gulf Breeze)
 
Posts: 99
Joined: Sun May 01, 2005 7:37 am
Location: Gulf Breeze, Florida

PreviousNext

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 2 guests