View previous topic :: View next topic |
Author |
Message |
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sat Mar 15, 2003 7:21 pm Post subject: treeview |
|
|
Hi Bill,
thanks for your answer.
Do you know about the problem I told about the statusbar ?
If I remove the statusbar from your ini demo, all events are
TV1CLICK,etc.
If I leave the the statusbar, they are only CLICK,RCLICK and DBLCLICK.
I am wondering about the others where it seems to work.
Maybe its about my OS ? I am using german Win XP Home.
Could you add something like ToolTip functionality ?
Thank you Bill for your really big help.
You have a greet and big Thank you in my actual commercial CRM/Intranet Applikation like some others from vdsworld.
I will notifiy you all when the application is released and
show you the greetz
Bye, Fabian |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Mar 16, 2003 2:46 am Post subject: SSTreeVw.dll v1.1.1 |
|
|
Sorry I hadn't tested the multiple trees on a window, although I still can't
see why you'd want more that one treeview on a window anyway, but you
can now place multiple treeview controls on a single window if desired.
The CLICK event is also now generated by either clicking on a treeview's
item or if the "hasButtons" style is defined, by clicking on the item's button.
I also believe I've fixed the Statusbar problem as well.
And the tooltip feature is enabled by default when the control is created.
The "noToolTips" style disables the tooltips for the treeview control. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sun Mar 16, 2003 11:20 am Post subject: treeview |
|
|
Hi Bill,
thank you very much.
Seems to work really fine now
Sorry - I think you missunderstood me on the tooltip-Thing.
I mean someting on hotspots (text on mouse over).
Do you think such things are possible ?
I would need it for saving information for a treeview-enty that
is not visible
Bye, Fabian |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Mar 16, 2003 2:29 pm Post subject: |
|
|
Hi Fabian,
I'm afraid I don't quite understand what you are getting at. Would you care
to explain in a little more detail what exactly you are trying to accomplish?
Then we'll see what we can do from there. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sun Mar 16, 2003 3:51 pm Post subject: treeview |
|
|
Hi Bill,
ok. I will try to explain (hope my english is good enough).
What I need to the treeview is to save information for each
element that is not shown to the user (the ID of the record in
my database).
So my idea was to store this in a tooltip. Like I can define the
tooltip-text for vds elements (bitmap or button) it would be great
to be able to do this with the tree-elements - setting a tooltip
text for each child and reading it. Do you know what I mean ?
Maybe another good feature would be the ability to get all
checked elements at once.
Bye, Fabian |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Mar 17, 2003 2:55 am Post subject: |
|
|
Hi Fabian,
I'll have to do some reasearch to see about changing the tooltip text, but
it's already set to the text of an item that is added to the treeview control.
If that makes any sense to ya. Even though you can set a tooltip in VDS
there isn't anyway that I know of to retrieve that text using VDS.
As far as returning all checked items goes, you'd be better off tracking the
treeview items with a string list. A treeview control is capable of holding
many more items than you could easily parse from a returned function, not
to mention the headache I'd get writing the function to do such a task. If
I'm not mistaken, I don't have a function in SSTreeVw.dll that can return
an item's state (ex; checked, focused, etc.) but I will add that function with
my next release, if it isn't already there. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Apr 02, 2003 4:13 pm Post subject: treeview |
|
|
Hi Bill,
I think I need your help again
I'm searching for a way to save an id number for each entry in a tree element. This is because my Intranet/CRM-Application should allow
unlimited categories with subcategories. So categorie-names can exist twice (as subcategories) but will have different internal ids.
Now I want to make my new rights manager and save-in-categorie
dialog with you treeview dll. But how can I save my categorie-id
to know which ID is meant when a user clicks on a categorie name ?
Bye, Fabian |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Apr 02, 2003 9:10 pm Post subject: |
|
|
Hi Fabian,
The only thing I've come up with that does something similar to what you
want goes something like this:
Code: |
1) create a string list
2) as you are adding items to the treeview control add an item to the string
list with a format similar to the following:
<item id>|<parent item>|<other data>
3) then as you need to find something use @match(<string list>,<item id>)
because each treeview item is going to have a unique number you'll be
able to get a match with @match().
4) then parse out the item that matched and you can move on to something
else
|
There is an example for a menu-editor that I wrote in the VDS 4 source code section. Here's the link:
http://forum.vdsworld.com/viewtopic.php?t=1314.
The method mentioned above is used in that script. I hope that helps. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Apr 03, 2003 6:28 am Post subject: treeview |
|
|
Hi Bill,
thanks for your answer.
You mean every tree item has a really unique ID ?
Thats cool. So I could build a ini-file or a write it to
my vdsmem-MemoryMAP with:
tree-id = mycategorieid
and if the users clicks on it I know the cat.
That is cool.
Bye, Fabian |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Apr 03, 2003 6:38 am Post subject: treeview |
|
|
just one other question on this.
How do I get the right treeview-id after adding a new child ?
Bye, Fabian |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Apr 03, 2003 7:36 am Post subject: treeview |
|
|
and i have a feature question.
could you add something, that we don't have to specify the haschildren for a item and that the +/- Buttons will then be automatically added, when a child for this item is added?
Bye, Fabian |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sat Apr 05, 2003 6:42 am Post subject: treeview |
|
|
Bill ? Can you help me ? |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Apr 14, 2003 4:59 am Post subject: Re: treeview |
|
|
Hi Fabian,
Sorry, I'm gonna be in and out for the next few weeks or months, depending
on how and if my finances improve.
I'm gonna start by asking if you looked at the menu editor example I
posted in the VDS 4 Source Code section. I still can't think of any other
way to explain to you how to do what you want. Look over the source
code for the menu editor very carefully and you'll see how I implemented
the saving of child and parent item ids together in a string list.
I wish I had something more for you, but unfortunately I don't. Sorry _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Apr 15, 2003 7:45 am Post subject: treeview |
|
|
Hi Bill,
I tried to look at you menu editor, but it looks a little bit
strange. Is this how it should look ?
Bye, Fabian |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Apr 15, 2003 7:59 am Post subject: treeview |
|
|
Hi Bill,
now I understand.
I was so stupid
Now i know that the variable
%%dummy = @treeview(addChild,.....
will hold the unique ID.
So I can save to a list
%%dummy|%%mydatabaserecordid
Thank you again very, very much for your help.
Bye, Fabian |
|
Back to top |
|
|
|