Page 1 of 1

firstIconCollapsed lost in standalone, unsettable in IDE

Posted: Thu Apr 17, 2014 8:42 am
by jameshale
Description: in the IDE I set the firstIconCollapsed of the tree to the ID of an image (closed book)
--
set the firstIconCollapsed of group "TOCNavigation" card "Table of Contents" to 1060 # closed arrow
--
However, in the IDE the firstIconCollapsed appears as a triangle (triangle2.gif I think, not my open book)
In my standalone the firstIconCollapsed doesn't appear at all!
1. How do I actually set the firstIconCollapsed?
2. How can I get it to appear in my standalone?

Note: the firstIconExapanded works fine (in my case an open book)
also the secondIconCollapsed also works fine (a page icon)
It is only the first IconCollapsed that doesn't play ball.

(also submitted as an issue on tapirsoft)

Re: firstIconCollapsed lost in standalone, unsettable in IDE

Posted: Mon Apr 21, 2014 4:34 pm
by malte
Hi James,

if you use your own icon images, it is a good idea to set the images ID first, in order to avoid conflicts with image IDs that are already in use by other stacks, like the one you are seeing now. To do that, either use the inspector, or the message box.

set the ID of image "myImage" to 444001

That number is high enough to avoid conflicts with already existing images. In rTree then use the new ID to make it work.

Hope that helps,

Malte

Re: firstIconCollapsed lost in standalone, unsettable in IDE

Posted: Tue Apr 22, 2014 5:41 am
by jameshale
thanks for that.
took a while as it seems I was setting the icons in two places and was only modifying one.
all fixed now.

BTW What are the constraints in the icons.
Size wise, how big can they be?

Re: firstIconCollapsed lost in standalone, unsettable in IDE

Posted: Tue Apr 22, 2014 12:35 pm
by Klaus
Hi James,
jameshale wrote:BTW What are the constraints in the icons.
Size wise, how big can they be?
since "icons" in LC are just the IDs of images, only the limits for images apply here.
And that is: The sky erm... RAM is the limit :D


Best

Klaus

Re: firstIconCollapsed lost in standalone, unsettable in IDE

Posted: Thu Apr 24, 2014 4:20 am
by jameshale
@klaus, yes for LC there are no limits as such.
But for rTree there are.
It appears the space available for any of the icons is determined by the textsize (more correctly the lineheight I guess) of a node.
there is a textsize node property which i have yet to get working but there also doesn't seem to be a single setting for the textsize/lineheight of the tree.

So my question remains, what are the limits for the icon sizes and in addition, how does one modify them for the whole tree?