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: item state

Posts: 1
Registered: 10/13/2006
Member Is Offline
posted on 10/13/2006 at 02:17 PM Reply With Quote
item state

This is a greate tree control. I am trying the free one now. I do not mind to buy the pro one. However I need to make sure 2 features are supported.

1. I need to be able to find the selected item in JS.
2. I need to be able to format the caption with more information like folder description, last modified date and time for folders and file type, file size and last modified date and time.

I am working on the 1st one now. I appreciat if someone can help out.

How to check the state like opened, closed, selected, deselected of tree item?

I have a leaf item which is selectd or highlighted. When I tried to test its state in JS like this

alert('b_selected is ' + o_item.b_selected);
alert('b_toggled is ' + o_item.b_toggled);
alert('b_opened is ' + o_item.b_opened);
alert('b_highlighted is ' + o_item.b_highlighted);

Only b_opened returned false and others are undefined.

Thanks in advance for any help.

View User's Profile View All Posts By User U2U Member

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 10/13/2006 at 03:25 PM Reply With Quote

in the PRO version the state is stored in the .n_state property (bitmap). With free version you'll need to add the flags in the methods that change the state to keep track of it.

With the free version check out function item_get_icon to get the idea how different states are detected.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
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