Source language: Translate to:

hpwtreeview

Questions about NeoBook PlugIns

Moderator: Neosoft Support

hpwtreeview

Postby Guest » Wed Nov 24, 2004 11:22 am

Hi Hans,

Trying out treeview 1.17. When using the wizard for hpwTreeViewCreate, clicking the gear buttons to Edit Actions doesn't work for me.
Guest
 

Postby Guest » Wed Nov 24, 2004 2:17 pm

Since topic

http://www.neosoftware.com/forum/viewto ... 0&start=45

is locked here the latest news:

Just released hpwtreeview 1.18:

Bugfix for second action-gear of hpwTreeViewCreate

The second gear for the actions starts with the text of the first gear.
Guest
 

Postby Guest » Thu Nov 25, 2004 2:01 pm

Just released hpwTreeView 1.19:

Added hpwTreeView.ini in plugin-directory to be able to translate/expand plugin comments.
Guest
 

Postby Guest » Thu Dec 02, 2004 4:29 pm

HPW,

First, thanks for all your help and great plug-ins.


I need some help with hpwTreeView.

I am using it inside of a custom window. What I am finding is that the background of the tree view is changing to the color of the screen that it is ontop of.

Here is the code I use.

Code: Select all
SetVar "hpwTreeViewBGColor" "RTreeView3"


If I try to set it to adelphi color like this
Code: Select all
SetVar "hpwTreeViewBGColor" "c|White"


Then the text of the treeview is not visible and I get windows violations

Thanks
Steven
Guest
 

Postby Guest » Thu Dec 02, 2004 11:27 pm

Is it only a typo here on the forum?

SetVar "hpwTreeViewBGColor" "c|White"

or is it copied from your code?

It should be:

SetVar "hpwTreeViewBGColor" "clWhite"

cl is delphi prefix for 'color'.

Anyway I will have a closer look at it in the evening.
Since the treeview is one of the older plugins it maybe
that there is still my old color-setting code, instead of the
newer code (from other plugins), which is more felxibel
with color-keys. (delphi,HTML or RGB colors etc.)
Guest
 

Postby Guest » Fri Dec 03, 2004 6:14 am

HPW thanks for getting back.

You are right. I didn't code the the delphi prefix correctly.

But my other question is still bothering me.

Why am I having problems with
Code: Select all
SetVar "hpwTreeViewBGColor" "RTreeView3"


Where the color is changing in my custom window depending upon the color of the objects that it is on top off.

Thanks
Steven
Guest
 

Postby Guest » Fri Dec 03, 2004 7:40 am

Hello Steven,

Code: Select all
SetVar "hpwTreeViewBGColor" "RTreeView3"


With this call the color of the rectangle is taken by this delphi code:

Code: Select all
            DC := GetDC( ObjHandle );
            IF DC <> 0 THEN
                   TRY
                        TreeView.Color := GetBkColor( DC );
                   FINALLY
                        ReleaseDC( ObjHandle, DC );


Does the rectangle in your custom window changes somehow?
(The rectangle need to have a solid color as far I remember)
Guest
 

Postby Guest » Fri Dec 03, 2004 9:36 am

Since the treeview is one of the older plugins it maybe
that there is still my old color-setting code, instead of the
newer code (from other plugins), which is more felxibel
with color-keys. (delphi,HTML or RGB colors etc.)


After a short look I see that I intoduced this yet in 1.15!
Guest
 

Postby Guest » Thu Dec 09, 2004 2:20 pm

Just released hpwTreeView 1.20:

New property [hpwTreeViewFontColor]
New property [hpwTreeViewFontCharset] (see CHARSET.txt)
Bugfix: No more crash when [hpwTreeViewBGColor] is not set.
New direct newLISP-interface (see lispdemo.lsp)

hpwTreeViewFontCharset is the same as the script-property in neobook text.

Direct newLISP-interface is a DLL-DLL interface without connecting the neobook script-engine.
Guest
 

Postby Guest » Fri Dec 10, 2004 9:45 am

Just released hpwTreeView 1.21:

Final Version of new direct newLISP-interface (see lispdemo.lsp)
Guest
 

Postby Guest » Wed Feb 23, 2005 7:32 am

Hello Hpw I need your help about the hpwtreeview...

I have a dbf database that is having all my mp3's with the artist, album, title, track, year, folder(where is the mp3). I like to know if it possible to have a tree with all the artists and when make a click to have all the albums of this artist. So to make query with the artist and album. And If it is possible to make sorted all the artists?
Guest
 

Postby Guest » Wed Feb 23, 2005 8:56 am

Hello Skias,

Seems to me not so much a Treeview problem than a DB query/scripting problem.

The Treeview has 2 possibilitys to get nodes into it.
You can read in a complete preprocessed TXT file in on rush.
The TXT has Tab-Chars to mark a sub-node.
(see Treeview1.txt and Treeview2.txt from the demo)

On the other side you have the commands to add single nodes.
hpwTreeViewAddNode + hpwTreeViewAddChildNode + hpwTreeViewInsNode
With that you can loop through your data and add the node one by one per script.

Sorting is done by the DB or by script before adding them the the Tree.
Guest
 

Postby Guest » Wed Feb 23, 2005 12:51 pm

This is the code:

Code: Select all
Tree1
   Test1.1
Test2
   Test2.1
Test3
   Test3.1
   Test3.2
Test4
Test5
Test6
Test7
Test8
Test9
   Test9.1
      Test9.1.1
      Test9.1.2
      Test9.1.3
   Test9.2
   Test9.3
   Test9.4
Test10
Test11
Test12
Test13
Test14
Test15
Test16
   Test16.1
   Test16.2
   Test16.3
   Test16.4
Test17
Test18
Test19
Test20
Test21
Test22
Test23
   Test23.1
   Test23.2
   Test23.3
   Test23.4
Test24


This is Treeview1.txt and I like when I choose e.x. Test23.1 to get in query this:

Code: Select all
dbfQuery "[pubdir]Data\Files.dbf" "artist==[Test23] and album==[Test23.1]"


Is it possible to happen this?
Guest
 

Postby Guest » Thu Feb 24, 2005 12:03 am

Not sure:

When you put this into the double-click action of hpwTreeViewCreate:

dbfQuery "[pubdir]Data\Files.dbf" "artist==[artist??] and album==[RTreeView1_Text]"

then we have the half problem.

We also has currently the following vars:

[RTreeView1_AbsIndex]
[RTreeView1_Text]
[RTreeView1_Level]
[RTreeView1_Index]

So how to get the [artist??] when I have the album clicked?
The question is what main-node has a sub-node.
Maybe a script would do that that searches an array from the [RTreeView1_AbsIndex] of the clicked entry downwards to the next entry with an higher [RTreeView1_Level]. That is the main-node of that sub-node.

But why do you not simply search:

dbfQuery "[pubdir]Data\Files.dbf" "album==[RTreeView1_Text]"

Or have 2 artists the same album?
Guest
 

Postby Guest » Fri Feb 25, 2005 6:25 am

Yes that is the problem...And I can't find a script that can help me.

So can you make a variable for upper node (artist in my programme)?
Guest
 

Next

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 3 guests

cron