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: Default Icon for all views
dcane
Junior Member

Posts: 6
Registered: 8/14/2003
Member Is Offline
posted on 9/8/2004 at 05:02 PM Reply With Quote
Default Icon for all views


Hey all -

I am generating a rather large tree and need to override the icons for certain nodes and leaves.

I know I can do this by overriding the i4,i8, etc... But this gets huge (HTML).

I can live with not having icon-effects at all. How can i set it up so that there is just an "icon" for a node or leaf, and no effects -- therefor not having to supply which icon to use in effects at all.

Thanks!

Daniel Cane
[email protected]
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/9/2004 at 09:06 AM Reply With Quote

First of all you don't need to setup different icons in all these items scope settings. You could define few icons sets via array and assign the array to items scope settings. Eg:
var iconset1 = {'i4':'myicon/icon1_4.gif', 'i8':'myicon/icon1_8.gif', ...};
...
var iconsetN = {'i4':'myicon/iconN_4.gif', 'i8':'myicon/iconN_8.gif', ...};

TREE_ITEMS =[
...
['item','link.html',iconset1],
...
['item','link.html',iconsetN],
...
['item','link.html',iconset1],
...
['item','link.html',iconsetN],

];

This way is more compact.

To disable mouseover/mouseout and other events you could handle them via open API and return false in event handler functions.
View User's Profile View All Posts By User U2U Member
dcane
Junior Member

Posts: 6
Registered: 8/14/2003
Member Is Offline
posted on 9/13/2004 at 01:29 PM Reply With Quote
Thanks.


Rock. Both solutions would work well. I've implimented the array solution to conserve space. Where can I find more info on overriding the public API to not change images onMouseOver, etc?

Thanks for the help and prompt response!
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/13/2004 at 02:25 PM Reply With Quote

You could find more info about the open API in the [url="http://www.softcomplex.com/products/tigra_tree_menu_pro/docs/#api_examples"]Product Documentation[/url] and in the demo 4 from your download package.
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