Change the Tree Component background

Does anyone know how can i change the Tree Component
background ?
PLS HELP

Check out the Component Reference... you change the icon for
a single node, as far as I know there's no automated process beyond
that. So assuming your tree component instance is named "theTree"
you might do this to change the icon of the first node:
theTree.dataProvider = yourXML; // make sure you don't try to
change the icon before you load data into the tree
var theNode = theTree.getTreeNodeAt(0); // the first node in
your tree
theTree.setIcon(theNode,'myIcon'); // set the icon
Where "myIcon" is a MovieClip you have in your library that
you have set the "linkage identifier" as "myIcon".
That iconFunction doesn't make a whole lot of sense to me,
because first of all I don't know why it would be attached to
theTree, and second it's referring to "item" which is not defined,
and third its taking the parameter "node" and not doing anything
with it. But perhaps there is some cool way to make a single
function which handles icons for your entire tree automatically,
that would certainly be nice.
However, like I said, as far as I know that function will do
nothing without calling tree.setIcon() in some way. I just made a
function which might do what you want -- it recursively loops
through an entire tree and sets it's icon based on the XML
attribute "icon":
function setAllIcons(branch){
for(var i in branch.childNodes){
var node = branch.getTreeNodeAt(i);
theTree.setIcon(node,node.attributes['icon']);
if(node.hasChildNodes){
setAllIcons(node);
So basically, you run setAllIcons(theTree.dataProvider) after
you have loaded and applied the XML.

Similar Messages

  • How do you change the Tree Component Icons?

    Hi,
    I have been trying to get to grips with the tree component. I
    want to
    customise it so that I can have a different icon for each
    different link.
    E.g. a QT logo for a video etc. If no valuse is found for the
    'icon'
    attribute it will just display the default.
    Within my XML file I have created a new attribute for each
    link called
    'icon' and has a value of 'movie.gif' or something similar.
    In my flash file, I have created the following code:
    theTree.iconFunction = function (node:XMLNode) {
    var iconNode:String = item.attributes.icon;
    if (iconNode != undefined) {
    return iconNode;
    However, it does not seem to work. My knowledge of
    ActionScript is pretty
    poor so I assume I have made a mistake in there somewhere.
    Can anyone help
    me with this?
    Thanks!

    Check out the Component Reference... you change the icon for
    a single node, as far as I know there's no automated process beyond
    that. So assuming your tree component instance is named "theTree"
    you might do this to change the icon of the first node:
    theTree.dataProvider = yourXML; // make sure you don't try to
    change the icon before you load data into the tree
    var theNode = theTree.getTreeNodeAt(0); // the first node in
    your tree
    theTree.setIcon(theNode,'myIcon'); // set the icon
    Where "myIcon" is a MovieClip you have in your library that
    you have set the "linkage identifier" as "myIcon".
    That iconFunction doesn't make a whole lot of sense to me,
    because first of all I don't know why it would be attached to
    theTree, and second it's referring to "item" which is not defined,
    and third its taking the parameter "node" and not doing anything
    with it. But perhaps there is some cool way to make a single
    function which handles icons for your entire tree automatically,
    that would certainly be nice.
    However, like I said, as far as I know that function will do
    nothing without calling tree.setIcon() in some way. I just made a
    function which might do what you want -- it recursively loops
    through an entire tree and sets it's icon based on the XML
    attribute "icon":
    function setAllIcons(branch){
    for(var i in branch.childNodes){
    var node = branch.getTreeNodeAt(i);
    theTree.setIcon(node,node.attributes['icon']);
    if(node.hasChildNodes){
    setAllIcons(node);
    So basically, you run setAllIcons(theTree.dataProvider) after
    you have loaded and applied the XML.

  • Tree Component Background Color

    Hi,
    I am using the Tree Component, it has 3 nodes.
    - Is there a way I could change the background color when
      I open each node.
    - Is there a way to change the font of the text
      associated to each node.
    Any Help would be appreciated.
    NAC

    Hi SAP Partner,
    What I have understood from your question is :
    1) you want to display the selected node in a different color than the rest of the nodes
    2) You need to change the text style of the tree as a whole(but not dynamically)
    If this is your requirement, you can make use of themes either in WebDynpro itself or Portal themes if you are embedding your application into portal.
    For applying webdynpro themes this link may help you
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/colourful webdynpro applications.pdf
    But I feel it is much more easier to do it from portal side if you have some portal knowledge. I cannot offer you any document saying how to do it from portal. But you might get some help from EP forum.
    Hope this helps,
    Best Regards,
    Nibu.

  • The Tree component

    Do any one know how to make the tree component transparent?
    I´ve tried a lot of different things but it doesn´t seem
    to work. I´ve tried to make it to a moviclip and drag the
    Alpha to 0 but then it doesn´t work at all. You can´t see
    the nodes..
    Please..
    [email protected]

    I have achieved this by placing the tree and data components
    within a container movie clip, and then changing the alpha of that
    container.
    It worked for me.

  • How cna I change the text and background colours in iTunes?

    Can anyone tell me how I can change the text and background colours in iTunes? I am a visually impared user and my main requirement on a PC is to change the colour schemem to white text on a black background. Most software adopts the settings of your colour scheme but iTunes goes it's own and has everything on white backgrounds. I cannot read from white backgrounds (dazzle - that sort of thing). I have never used iTunes for this reason. I have always been a devotee of by far the best media player out there Musicmatch Jukebox, who allow you to edit skins in every detail. However, recently Musicmatch was taken over and users were forced to migrate to the ridiculously poor Yahoo Music Jukebox. A massive downgrade in so many ways.
    I want to use iTunes but will not be able to if I cannot sort this issue out. I downloaded 7.5 before discovering that if you want to use Multi Plugin for skins you need to go back to iTunes 7.02. I've done that, but the skins available are completely pointless to my eyes. They don't change the colours of the main components, just the graphical bit at the top.
    What I need to do is change the background of the main browser windows so that they are black and the text is white (you know the track lists and tree views, etc). This must be a very simple case of just changing the codes somewhere, but I can't find where. I read somewhere that you need to hack into something call ResourceDB inside a file called iTunes.jar. There is no such file on my PC. Could that be a Mac thing?
    Please help someone if you can. I would like to become an iTunes user. There seems to be more music available than on Napster which I currently use.
    Thanks in advance
    Z

    In my opinion, it seems that Apple has decided to sacrifice usability so that iTunes would look more like a Mac application. You are probably already aware that using Windows' built-in high-contrast settings do not work in iTunes.
    I did some hacking at the resource file a while back, but I was unable to figure out how to change the color of the background. IIRC there was a resource whose description indicated it would change the background color, but when I changed the resource, nothing happened.
    I was, however, able to figure out how to make the "large" font much larger (any size you want, I suppose). Will that help? See
    http://home.comcast.net/~teridon73/ituneshacks/index.html
    You should provide feedback to Apple:
    http://www.apple.com/feedback/
    I don't think it is too harsh to call it "shameful" that Apple has chosen this design path. Where I work, we are required to make ALL applications (or any computer interface, such as a website) section 508 compliant. Of course, I'm being a bit of a hypocrite, because I've made no effort to make my website compliant. If you have trouble reading it, please let me know.

  • Three Numbers questions:how do you change the auto default background or fill color from white to another color to use in multiple succeeding operations?  what is the formula to express the ratio of two numbers as a percent?

    Numbers questioons:
    -how do I change the automatic default background fill color so it stays a non white color?
    -what is the formula to express the ratio of two numbers as a percentage?
    -how do I create a signal formula to be sue against an entire column of data (for example, if I wanted to multiply the each cell in the column by the number 10)?
    -I have created a spreadsheet in Numbers with header and rows labelled and it contains formulas as well.  I now want to create a new 'blank' of this template with same header and row names and formulas, but without the cell entries from my earlier exerciser so I can use again in the future. How do I do this?

    Hi Matt,
    For short columns, the easiest method is to select the cell containing the formula, then grab the fill handle (small circle at the botom right of the selected cell) and drag down.
    For long columns, use either Jerry's suggestion (copy/paste) or Insert > Fill > Fill Down.
    Copy/Paste:
    Select the cell containing the formula. Copy
    Select from the cell containing teh formula to the end of the column. Paste.
    Fill Down:
    After entering the formula, and pressing enter...
    Click on the column reference tab to select the whole column.
    Command click on each cell above the one containing the formula to remove it from the selection.
    When cell with the formula is the top cell in the selection, go Insert > Fill > Fill Down.
    Pick whichever is easiest.
    Regards,
    Barry

  • How to change the page Header background colour in a Theme

    Hello,
    I want to know how to change the page header background colour. If you are in the Editor I don't find a property where to change it.
    If you are in the Theme Editor in the header bar I want to change stands <b>Theme Editor</b>. This (in my case blue colored bar) I want to change in another color.

    Hello Radhika,
    thanks for your answer. Where do I find the option for the pageheader in System Administration>Portal Display>Theme Editor ->IView Trays exactly?
    The pageheader is a picture, which must be uploaded for the web dynpro. Why should any webdynpro element in the ivew tray. There is no relationship between these two parts.
    I have not found any option to change the web dynpro pageheader. Could there any extra theme editor for webdynpro?
    Thanks.
    Olaf

  • How do I change the PS desktop background to a .JPG or other suitable file format of my choosing?

    Greetings,
      I asked this question a couple months ago and never really received a satisfactory answer.  Maybe Adobe holds these secrets close to the vest.
      What I would like to accomplish is changing my PS desktop background so that every time I open PS it has a background that I have chosen. (Yes I know you can change the black and grey in the preferences panel) What I want is not necessarily in the preferences panel, unless I'm missing something altogether.
    Now here I'm adding a screenshot of a fairly well known PS user CB (who is especially good at 3D) who has his background basically the way I would like mine. If anyone can tell me how to accomplish this thank you!
    Sincerely,
    Jim
      What I'm looking for is something similar to the dark blue background.  I have a JPG file similar to this that I would like to use.  Now I was able to change the splash opening screen in Lightroom, so I imagine the fix is something similar.

    Thanks,
       That did work and it's the same as the frame in the sample I provided.  Unfortunately not what I wanted.  I guess I need to be much more specific. I would like to change the background to look similar to what that sample is, AND be able to have PS as an application that's on top of my desktop and not take up the entire desktop. (which is what happens if I break out the application frame) Probably not something that is doable.  I was hoping that similar to changing the Lightroom Splash screen I could change the PS desktop background to something of my choosing other than black or shades of gray.  Oh and I am on an iMac.
      Thank you again Warunicorn for you help.

  • A question about the Tree Component

    I have try to use the tree component i a flash page, and
    it´s going allright until I´ll want to link the content
    to a page... WHY??
    I have tried a lot of different codes here are those I tried:
    <tree>
    <folder label="Mine own">
    <link label="My page" url="
    http://www.mickesei.se" />
    </folder>
    </tree>
    Nr2:
    <tree>
    <folder label="Mine own">
    <link label="My page" link="
    http://www.mickesei.se" />
    </folder>
    </tree>
    nr3:
    <tree>
    <folder label="Mine own">
    <link label="My page" href="
    http://www.mickesei.se" />
    </folder>
    </tree>
    nr4:
    <tree>
    <folder label="Mine own">
    <link label="My page" get URL="
    http://www.mickesei.se" />
    </folder>
    </tree>
    But nothing seems to work, when I go mouse over it still a
    arrow should it?
    HELP ME PLEASE!!! Micke

    Thanx Jeanne,
    You brought me on a idea with the UIX Developer's Guide and EXPANDABLE_EXPANDED value.
    I couldn't figure out how the expand property was filled, because it wasn't done in the ADF BC ViewObject. We have a Utility class that creates a DataObject from the ViewObject Data and here the expand property was set.
    Now it was easy to build a ExpandAll option. It is possible to access the HttpServletRequest object were the DataObject is created. By setting a attribute in the request I could react on that and give the expand property indeed the value EXPANDABLE_EXPANDED.
    Dennis

  • Can i change the default gray background of the fw workarea?

    can i change the default gray background color of the fw
    workarea? thanks

    On Tue, 2 Sep 2008 03:36:42 +0000 (UTC), "mediastream13"
    <[email protected]> wrote:
    >can i change the default gray background color of the fw
    workarea? thanks
    Didn't we do this earlier today?
    It's not a Fireworks setting. It's a system-wide setting. You
    have to
    customize your workspace at the system level.
    Win
    Win Day
    Wild Rose Websites www.wildrosewebsites.com
    [email protected]

  • How to change the particular column background  color in jTable?

    I am woking with a project, in which I am using a jTable. Then
    How to change the particular column background color in jTable?

    Use a custom Renderer. This is the JTable tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • Can you change the vi color background using a property node?

    I was wondering if it was possible in Labview to use a property node to change the front panel background color for one iteration and then back to an original color afterwards. I dont think it is possible but would like to know for sure.
    Thanks,
    Jody
    Jody M.
    The Procter and Gamble Co.
    Certified Labview Developer
    Currently using LV2012.
    Solved!
    Go to Solution.

    Yes you can
     That's how you change it, you will just have to put some logic to change it back
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    FP color.PNG ‏4 KB

  • How to change the login's background

    Hi all,
    I'm new with apex and i need to change the login's background, i want to place an image as the login's background.
    how do i do that?? where should i change it ??
    Regards
    Carlos

    Hello,
    Here you can see it in details:
    http://application-express-blog.e-dba.com/?p=1681
    http://www.grassroots-oracle.com/2011/07/modifying-your-apex-login-page.html
    Regards,
    Fateh

  • How Do I Change The Logon Screen Background?

    Hi...
    I was wondering how to go about changing the logon screen background... You know... The screen background you see when you first boot the Mac and it's sitting at the logon window waiting to be logged on?
    Thanks in advance!!

    You can do this with OnyX: http://www.titanium.free.fr/download.php
    The image you want to use has to be in one of a few locations:
    This button allows you to choose a replacement image for the background of the Login Window. By default, the application directs you to the folder containing the Desktop Pictures of Mac OS X (/Library/Desktop Pictures/...). You can choose another image but it must be accessible by all users, for example in the Public, Shared or Sites folder.
    Formats accepted: PNG, JPEG, JPEG-2000, GIF, PSD, TIFF, TGA, BMP.
    It's in the Parameters > Login tab.

  • Can we change the Software Component Version's Name?

    Hi everyone,
    Can we change the Software Component Version's Name in the Integration Repository? If we can, how can we change it?
    Regards,
    Nick

    hi Nick,
    Procedure:
    1. create a new software component in SLD
    2. create a new version of this software component in SLD
    3. import in into the repository
    4. try using release transfer to transfer objects
    from old on to the new one
    http://help.sap.com/saphelp_nw04/helpdata/en/e8/e8573ba5f13048be50532fc3fcea9c/content.htm
    5.delete the old software component
    /people/siva.maranani/blog/2005/05/22/how-to-delete-software-component-from-integration-builder
    BTW
    <b>do not chage it in the database!</b>
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Maybe you are looking for