Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Automatic collapse.
6torkje
Junior Member

Posts: 2
Registered: 11/12/2002
Member Is Offline
posted on 11/20/2002 at 08:54 PM Reply With Quote
Automatic collapse.


Is it possible to make the tree-menu automatically collapse current branch when expanding a new branch? This would make the tree-menu even better!
View User's Profile View All Posts By User U2U Member
6torkje
Junior Member

Posts: 2
Registered: 11/12/2002
Member Is Offline
posted on 12/5/2002 at 12:22 PM Reply With Quote

The total lack of response, especially from ?tigra?, makes me a bit disappointed. But it doesn?t matter. I?ve found another, free, menu system that meets my requirements.
View User's Profile View All Posts By User U2U Member
Ulukai
Member

Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
posted on 12/9/2002 at 09:10 PM Reply With Quote

Think I found a solution (I did only a few tests on it)..

Add the following code to the constructor of tree:
tree:

this.collapseall = function(){for(var i = 1; i < this.a_index.length;++i) if(this.a_index.o_idiv) {this.a_index.open(true);}};


Add the following code to the function item_open after the lines:

var o_idiv = get_element('i_div' + this.o_root.n_id + '_' + this.n_id);
if (!o_idiv) return;

add the line:
this.o_idiv=o_idiv;

This should solve your problem.
CU

Ulukai

P.S. Its quite a dirty hack.. But you seemed to be so disapointed..
I think the tools presented here are worth waiting a bit for an answer:) Gee, Softcomplex, your code is kewl:)
View User's Profile View All Posts By User U2U Member
eastwood
Junior Member

Posts: 4
Registered: 12/9/2002
Member Is Offline
thumbup.gif posted on 12/9/2002 at 09:16 PM Reply With Quote
icon per


Ulukai
you posted earlier about an icon per mod i was wondering if i could get this from you? thanks
View User's Profile View All Posts By User U2U Member
eastwood
Junior Member

Posts: 4
Registered: 12/9/2002
Member Is Offline
posted on 12/9/2002 at 09:27 PM Reply With Quote
asdf


************** for destination
View User's Profile View All Posts By User U2U Member
Ulukai
Member

Posts: 40
Registered: 11/27/2002
Location: Frankfurt, Germany
Member Is Offline
posted on 12/9/2002 at 09:39 PM Reply With Quote

Sorry.. this collapse thing doesn?t work this way.
Do the code changings of my first post and add the following, but this is really a dirty hack. It first collapses everything and then opens the parent branch again

this is the full body of the function item_open

if(!b_close)
if(this.o_parent.open)
this.o_parent.open(b_close);
var o_idiv = get_element('i_div' + this.o_root.n_id + '_' + this.n_id);
if (!o_idiv) return;
this.o_idiv=o_idiv;
if (!o_idiv.innerHTML) {
var a_children = [];
for (var i = 0; i < this.a_children.length; i++)
a_children= this.a_children.init();
o_idiv.innerHTML = a_children.join('');
}
o_idiv.style.display = (b_close ? 'none' : 'block');
for(var i = 0; i < this.a_children.length; i++)
{
var o_iicon = document.images['i_img'+ this.o_root.n_id+'_'+this.a_children.n_id];
o_iicon.src = this.a_children.get_icon();
if(!b_close){
if(this.a_children.o_idiv){
this.a_children.open(true);
}
}
}

this.b_opened = !b_close;
var o_jicon = document.images['j_img' + this.o_root.n_id + '_' + this.n_id],
o_iicon = document.images['i_img' + this.o_root.n_id + '_' + this.n_id];
if (o_jicon) o_jicon.src = this.get_icon(true);
if (o_iicon) o_iicon.src = this.get_icon();
this.upstatus();


Hope this will solve the problem.
CU

Ulukai
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Tree Menu
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   
Tigra Tree Menu PRO
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004