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: function item_get_icon (b_junction)
hpbauer
Member

Posts: 12
Registered: 7/2/2004
Member Is Offline
posted on 9/8/2004 at 11:49 AM Reply With Quote
function item_get_icon (b_junction)


how does this function determine the icon?
-starts with 'icon_'
and then add the sum of...
- 32 if element level 0 else 0 (this.n_depth ? 0 : 32)
- 16, if the element has no childs, else 0(this.a_children.length ? 16 : 0)

But how does it go on?
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:19 AM Reply With Quote

in your tpl file the is a list of icons (like 'icon_48', 'icon_52', etc.). The number corresponds the value you acquire via the sum.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 9/14/2004 at 06:17 PM Reply With Quote

The index at the end of the key is bitmap of item's state. See Tigra Tree Menu PRO documentation for description:

Bitmap property indicating current state of initialized item:

0 bit - last item in the block
1 bit - reserved
2 bit - item is selected
3 bit - item is opened
4 bit - item is node
5 bit - item is root
6 bit - item is mouseovered
7-31 bits are reserved

in respect to the icons bit 1 is used to indicate junction icon (lines, and [+/-] signs)

This bitmap approach saves us from writing 128 if/else statements. Cool, huh?
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