View previous topic :: View next topic |
Author |
Message |
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Wed Sep 03, 2008 10:15 pm Post subject: TreeDSU - A TreeView Unit |
|
|
Hi guys
I have created a DSU to handle a more comfortable the treeview controls. It adds some features: moveUp, moveDown, toParent, toChild, load, save (with and without password) ...
Try it. It contains a script for use. The documentation is in Spanish. I would like to be tested for bugs. Thanks in advance.
Download:
http://vds.uvedese.es/index.php?option=com_content&task=view&id=161&Itemid=52
_______________
uVeDeSe Site
http://www.uvedese.es
_______________ |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Thu Sep 04, 2008 4:58 pm Post subject: |
|
|
very usefull job Svedese,
only two things at now
1: dblclick on treeeview control?
2 : translate every message of dsu in english
Tnx for your job |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Thu Sep 04, 2008 9:46 pm Post subject: |
|
|
Hi Tdk161. Thank
1) About DblCLICK in treeview control, You must define DBLCLICK
style in "tree" function in TreeDSU. This way:
%%imghandle = @tree(create,1,%%top,%%left,%%width,%%height,%%FontFace|%%FontSize|%%BckGroundColor|%%LineColor,%%WsizeImgList|%%HsizeImgList|%%ImgListColorStyle,%%style1|...|DBLCLICK)
DblCLICK in treview control produce a "treedsuXDBLCLICK" event where X is the id_number of treeview. You can examine events to manage the event DBLCLICK.
2) About Spanish messages, I think you are referring to the documentation. I hope to help me someone who speak English and Spanish correctly
____________
uVeDeSe
____________ |
|
Back to top |
|
|
DaveR Valued Contributor
Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sun Sep 07, 2008 11:33 am Post subject: |
|
|
uvedese wrote: | 2) About Spanish messages, I think you are referring to the documentation. I hope to help me someone who speak English and Spanish correctly uVeDeSe |
Hi uVeDeSe,
I think Tdk161 meant the warn, info and error messages. _________________ cheers
Dave |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Sun Sep 07, 2008 4:16 pm Post subject: |
|
|
Well DaveŽ. TreeDSU does not generates error messages (only returns values as "1" if it was OK, "null" if there were errors, WRONGPASSWORD if password introduced was wrong, to load a tree).
The messages in "Test TreeDSU" script can be translates without problems to any language. |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon Sep 08, 2008 7:26 am Post subject: |
|
|
Svedese using your dsu I founded this error/my mistake
in a tree like this:
+ Test1
| + SubTest1
+ Test2
when I Check test1 and delete it only subchild subtest1 is deleted not all subtree test1+subtest1
my error? |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Mon Sep 08, 2008 8:37 am Post subject: |
|
|
Tdk161:
It works perfectly to me. When you selects SubTest1 item and you deletes it, only selected subitem is deleted
___________
uVeDeSe
___________ |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon Sep 08, 2008 9:21 am Post subject: |
|
|
Svedese,
It's true, but with test1 selected, not delete test1 only its child subtest1 |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Mon Sep 08, 2008 11:25 am Post subject: |
|
|
When you delete an item is deleting all subitems also |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon Sep 08, 2008 11:55 am Post subject: |
|
|
svedese,
sorry, but with me not happen (using also the script sample included with dsu)
and How I can change the name of the tree object ? always like I see treedsu1 ?
tnx for any info |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon Sep 08, 2008 12:24 pm Post subject: |
|
|
Svedese,
I found why happen nodeletion of subchild,
the item must be selected and not only cheked, if selected work fine, is possible to change dsu consider the checked and not only selected?
and change the name of object tree to ather user defined? not only number ?
Many tnx for any info |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Mon Sep 08, 2008 12:56 pm Post subject: |
|
|
Ckeck is a TreeView control style. You can use checks, for example, to mark completed or pending tasks, etc...
You can create a TreeView without Check style. You must select treeview items to work with they.
About treview control name: TreeDSU use a list to manage treeview items (to Copy, moveUp, moveDown items, etc.). Id. list must be a number, then, TreeDSU uses the same identifier to the list and treeview control.
_________
uVeDeSe, please, not Svedese, Thank
_________ |
|
Back to top |
|
|
Tdk161 Valued Contributor
Joined: 08 Feb 2005 Posts: 399 Location: ITALY
|
Posted: Mon Sep 08, 2008 1:04 pm Post subject: |
|
|
sorry sorry and a lot of apologize uVeDeSe
but the style CHECKBOXES is used |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Mon Sep 08, 2008 2:05 pm Post subject: |
|
|
Don't worry Tdk161.
In "Test TreeDSU" script, I use Checked style in treeview, but it isn't necessary. I use it to experience the possibilities of TreeView controls.
You can read the documentation (styles, commands and functions) of TreeView controls from ZIP file original (Shinobisoft software). TreeDSU complements and facilitates the use of TreeView Controls.
New features with TreeDSU:
MoveUp
MoveDown
ToParent
ToChild
CopyAdd
Save and Load tree structures (with and without numeric password)
The characteristics of the Treeview controls are inherited from the SSTreeVw.dll extension |
|
Back to top |
|
|
|