Use external image for tree icons

Hi all,
   having searched extensively with probably the wrong keywords, i'm hoping someone can point me in the right direction.
My app has a tree control that gets built by reading an Ini file, the icons get populated with custom images from a directory.  I'm trying to find a way to be able to interchange those icons after the executable has been built.  The current way that i put the icons in the tree is simplistic.  the names determine where in the tree they go... i.e. icon_1.jpg , icon_2.jpg , icon_3.jpg ...  become the first, second, and third icon.
i just don't want to have to rebuild the app every time a customer wants to replace the icons. 
any tips?  
thanks in advance! 

I'm not very original,  I'm using a tree toolkit i found on LAVA written by Norm Kirchner. http://lavag.org/index.php?app=downloads&showfile=27
and a library i found on NI :  http://digital.ni.com/public.nsf/allkb/89A75D98771F2FB686256F350055EB3A
See the .zip at the bottom of the page, it has an example vi.
It does in fact use the "Read JPeg File" vi's.
You'll see in the "Load Symbols.vi" that it takes as input, a directory where your custom symbols are located.  Is there a way to keep this directory outside of the executable when the application builder compiles everything together....????   Like maybe in the /data directory?
I've only been using the app builder for a couple weeks so I'm not that sharp on those little nuances, but the more we hash this out, it seems like it should be possible.
Message Edited by joshuatree on 12-07-2009 11:18 AM

Similar Messages

  • Use sprite image for button icons

    Hi all,
    I'm developing a mobile app in sapui5, i have many buttons in that.
    I also have a sprote image which contains all the icons.
    Please help me to use the sprite image as icons to the button.
    Thanks,
    Rahul.

    sorry the sprote implies sprite
    sprote ~ sprite

  • Using custom images for radiobuttons

    Hi
    I'm looking for help with creating a radio buttons with external images (fetched from XML/Javascript file) cause, I don't want to use standard looking radio buttons from components. I wish to use different images for each state of the button.
    Any one can help me with some ideas how to change look of then radio buttons?

    To manage homegrown radiobuttons as a group, you would incorporate an event listener function that manages the group.  That function would know which radio button was selected via the event target and would act to reset all of the other radios while setting the one selected.  I don't have a specific AS3 example, but below is a rough draft of the function/scenario.  In this, I am using 3 radio buttons that have numerically differentiated instance names (rb1, rb2, rb3)...
    var selectedRadio:MovieClip;
    function manageRadios(evt:MouseEvent){
         // first reset all radios
         for(var i:uint = 1; i<4; i++){
              this["rb"+String(i)].gotoAndStop(1);  // frame displaying deselected state
         selectedRadio = MovieClip(evt.currentTarget);
         selectedRadio.gotoAndStop(2);           // frame displaying selected state
         trace(selectedRadio.name);
    rb1.addEventListener(MouseEvent.CLICK, manageRadios);
    rb2.addEventListener(MouseEvent.CLICK, manageRadios);
    rb3.addEventListener(MouseEvent.CLICK, manageRadios);
    In this case, each radio button is simply a two framed movieclip, with stops for each frame... frame 1 displays the unselected state, and frame 2 displays the selected state.
    For the code shown, I include an external variable (selectedRadio) that can be used to target information related to the selected Radio button.  So if you assigned each radio with a variable (let's say you name it varName) that would hold data to be used in the processing elsewhere, you can get it using: selectedRadio.varName

  • Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Why can I no longer use an image for my signature on forms?  The only option I have now is "use a certificate".  It was never like this until today.

    Hi,
    I had never heard of someone using the iPhone Number as the ID in the iMessages account in the Mac version.
    i.e without adding an Apple ID
    iMessages does allow iPhone numbers and mine lists mine.
    I would try this.
    Sign Out of the iMessages account and Quit Messages
    On the iPhone in Settings > Messages remove the Apple ID
    Set the iPhone to Airplane mode for a few minutes (to break with the  Server)
    On starting the phone up again check the iPhone Number  is ticked for iMessages.
    If it is add the Apple ID
    On the Mac restart Messages
    Add the Apple ID
    At this point you should get a pop up or two saying the iPhone is using the Number and Apple ID.
    Accept these and they get added to the Receive At list and Send From drop down.
    9:41 pm      Monday; October 28, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to use background image for a page that work in Netscape..???

    Hi there
    Is there anyway around to use background image for a portal page that works well with netscape.
    As I have used that but in coming in Netscape.
    thanks
    Rakesh

    1) You post questions in the wrong forum. (As you title says this is a Swing question).
    2) Not once in your last 10 postings have you ever bothered to reply to a posting to thank people for the help you have received.
    I seriously doubt you well ever get answers in the future.

  • Struts - using html:image for link

    I would like to use an image for a link but I am not sure how to do this. Right now I'm using the <html:link> tag and using the action mapping. Can this be done using the <html:image> tag?
    Here's an example of what I'm currently doing.
    <html:link action="/homePage"><bean:message key="General.button.HomePage"/></html:link>I'm new at java and struts and could definitely use a little help.
    Thanks!
    bfrmbama

    yeah, <html:image> is a form submit button... in HTML, it's this:
    <input type="image" name="thename" src="thesrc" value="thevalue" />
    <html:link> has onmouseover and onmouseout attributes... so you just put the mouseover script stuff there.

  • How to use external CSS for standard items ?

    Hi,
    I would like to use my external CSS style-sheet for the standard items I add to my portal page.
    I build an UI template with a CSS-link to my css style-sheet, and I used this UI template for my portal page. But it seems that items cannot use this UI template CSS reference.
    Is there a way to use external CSS on standard items (text, url,...) ?
    Thanks for your help,
    Best Regards,
    JC.AUDARD

    Easiest way I find to do it is to drop your css file in the portal/images folder. Make a hidden html portlet on your template and link to /images/mycss.css. You can then use it for many items such as text, links, html portlets, etc.

  • Using External Images

    HELP! I have a large presentation the used a lot of images
    and need to externalize them using load image in the time line,
    however, i dont want to use buttons to do so. How can use this
    feature so that the images come in seamlessly without using buttons
    to retrieve the external files?
    In addition, how can I do this with external movies as well?
    With out using buttons to bring in external movies in the
    timeline?

    Just by using the loadMovie() method in your ActionScipt, it
    will be executed when that frame is reached in the timeline during
    playback without the need of the user clicking a button. Here's the
    LiveDocs link for working with loadMovie():
    http://livedocs.macromedia.com/flash/8/main/00001562.html
    Hope that helps!

  • Use external drive for Time Capsule backups AND file storage?

    I have an external drive formatted by my MBP.  I'm using it to store my iTunes music library and iPhoto pics.  Can I use the drive for Time Capsule backups as well?

    Yes, but that is not recommended. Storage and backup should be kept separate to reduce the chances of a disk failure. This is especially important because you cannot even partition a Time Capsule drive. Go get a separate drive for your storage needs. Get another drive for a second backup and use a different method of backup than Time Machine

  • Want to use external drive for new Mac, fresh iTunes

    So I recently got a new Mac and have not transferred any music to it yet. In fact I haven't even launched iTunes. I want to store all of my music and play it from an external drive. I have found articles detailing how to transfer your library from your internal drive to an external one but I don't have an internal library of music on this machine. How do I set up iTunes to play from an external library for the first time? And how do I add my backed up music from my previous iTunes to that external drive's new music library? Do I just drag the files into the folder and hope iTunes will recognize them?
    Thanks!

    okay, i had to collect my thoughts for a moment
    ... but I don't have an internal library of music on this machine.
    is *this machine* the new Mac ?
    How do I set up iTunes to play from an external library for the first time?
    the files will have to be added to iTunes. however, with the correct settings, they can be put straight on the external.
    in order to set up iTunes on the new Mac, you will have to launch it. with the external drive mounted on your new Mac's desktop, go iTunes > preferences > advanced and point +iTunes media folder location+ to the external. this will cause iTunes to put all newly added content in that location.
    also on the advanced tab, check +keep iTunes media folder organized+ and +copy files to ... when adding to library+.
    And how do I add my backed up music from my previous iTunes to that external drive's new music library?
    did you back up the music to disk ? if so, you should probably authorize iTunes with your iTMS account details, then just pop in the disk(s) and add the content to your library.
    if you have backed up to an external HD, use the +add to library+ command from the file menu and navigate to the folder containing your media files.
    JGG
    edited by the Jolly Green Giant (where Green stands for environmentally friendly)

  • Use external drive for windows and mac

    Hello,
    I just bought a external 320Gb Western Digital Drive. I would like to use
    the drive for windows and mac.I will not like to make partation on the drive
    to use it on both operating systems. Is there any formating system with which i can use in both operating systems? I would like to use time machine feature on that drive also.
    Thanx.

    If you want to use a disk for both PC/Mac file storage and Time Machine, you will have to create two partitions. Partitioning is sort of like creating multiple virtual disks on the same physical disk. One partition should be formatted for PC (which the Mac can also use) and the other should be formatted for HFS+ (Mac only) which is what Time Machine requires. The Disk Utility application makes partitioning and formatting very easy.

  • Don't want new tiff files saved in my catologue if I'm only using the image for a composite.

    When editing in Photoshop CS4 from LR3, the new tif will not appear in the catalogue unless I save it in PS. In LR4 it saves a new tiff in my catalogue regardless if I save the edited image in PS or not. I have a cloud library I use often and do not want new files saved in my LR catologue if I'm only using the opened image for compositing. Can anyone help me figure out how to change the workflow to be like LR3?

    -Agfaclack- wrote:
    i think adobe should support new cameras for older CS versions too.
    in the end PS is expensive enough to justifie a better support.
    How far back would you go? One version? Three? Where should the line be drawn? Adobe draws the line at the currently shipping version...it's now CS5 and shortly it will be CS6.
    Even if Adobe were to do this, you do realize that trying to put new plug-ins into older software is really tough. For example on the Mac, Photoshop CS5 requires that the plug-in be written in Apple's Cocoa API. Camera Raw 5 required a major update to be able to run in Cocoa...retrofitting Camera Raw 5 to run in a PPC platform (supported by CS3/CS4 but not supported by CS5) would be difficult–a lot of work for zero return. As a result of the engineering challenges of backwards compatibility Adobe has the policy of only updating currently shipping software to current customers. Truth be told, if you don't have the most recent version, you are not a current customer...you are a former customer. Having Adobe spend R&D engineering backwards compatibility to support former customers would take resources away from supporting current customers. As a current customer, I wouldn't like that.
    But it's all a moot point because I don't see any evidence that Adobe is going to change this policy for backwards compatibility. In fact, going forward, Adobe is already announced the change to Photoshop upgrade rules allowing only the most recent version to be upgraded to the new version. Because of the reaction that only CS5/5.5 could upgrade to CS6, Adobe blinked and now has given a grace period till the end of 2012 for CS3 & CS4 users to upgrade to CS6.
    Again many people don't like this, but as a pro user of Photoshop, I always upgrade anyway so it has no impact on me. Yes, it will bite some people and I can have sympathy, but again, you always have the free DNG Converter to use in the case you need new camera support. And hey, the new cameras come with software to process their raw files, right?

  • Problem using an image for a background

    Hi,
    My environment is Crystal Report 2008 SP2
    I am adding an image for a table header background in my report. The image is of type png.
    I use insert picture when I add it to the report. Up to there everything works fine.
    My problem happens when I try to draw lines on top of the image.
    All the lines that I draw stay underneath the image. Even though I move the image to the back and move the lines to the top.
    Any idea why?
    Is there something that I should do differently if I want to use an image as background?
    Thanks

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Using custom images for website?

    Hi, I'm totally new to this Dreamweaver stuff so I'm sorry if this is very easy, but I have created an image in Illustrator that I would now like to use as a website. The image is this:
    I have a background, and a menu bar and I'm trying to figure out how to use it as a background image. I'm looking to create a one column website that is liquid and has a little content on each page.
    Thanks in advance!

    Of course, this CSS will only work if the background image is named "background.png", and it is in the same location as the page you are making.  Perhaps it would be more helpful to do it this way -
    body {
        margin: 0;
        padding: 0;
        background-image: url(the_path_to_your_image);
        background-repeat:no-repeat;
    This will place the background image on the page aligned with the upper, left-hand corner of the browser viewport.  Now you will have to build the page's infrastructure so that the content is properly aligned with the background image.  You may have problems doing this, as this approach is not normally one that is successful (i.e., designing a single background image containing all of your layout elements and then just trying to align content to it).  Think about what will happen with that approach if someone makes their browser display text larger or smaller than you have used while you are aligning things!
    A better approach is to make the background an image (if you use an image at all) that can tile to fill the screen no matter how large the screen is.  Then build the page as a series of stacked rectangular containers, where each container is parent to a single part of the page's layout (like masthead, menu, content, footer, credit for example) and style each container with its own background image/color as needed.  That way, if one container expands because text is resized, the whole arrangement can flex vertically to accommodate it.  This approach will require that you understand enough about CSS to know that using absolute positioning is NOT the right way to go about making such a page.
    If you are not so friendly with CSS, then I suggest you delay your beginning on this site until you have acquired some additional familiarity with it.  A great way to get that is to read the "Missing Manual" volume for your version of DW.  The book is published by O'Reilly press and is authored by David McFarland.

  • Tiger Archive and Install Using External Disk for Archive?

    Any way to do an archive and install by moving the saved stuff to an external usb drive? My 10.4.3 install disk is offering me only erase and install, I was updated to 10.4.8 and quite invested with software, etc., would really like to at least try archive and install, but of course the main drive is too full for that.
    As an alternative, is there any way to use single user mode command line to locate and move files before doing the erase and install?
    Finally, I gather I cannot boot os 9 with my mini. Is there any workaround for that?
    Thanks for any help.
    Jud

    > One of the unexplained mysteries to me is what users are supposed to do about iTunes libraries?
    Create and maintain a backup saved to an external drive or media (used for backup purposes only) as should be done with all other data that is important to you - for this very reason and for other important reasons. It isn't a matter of if but when your hard drive has a partial or complete failure since none last forever.
    Since an iPod can be accessed/used via Disk mode as with any other external drive, many use their iPod for backup purposes which is a big mistake IMO since this isn't what an iPod is designed for. There are ways to retrieve music from an iPod but if you have your iPod preferences to automatically launch iTunes and update with iTunes and/or don't have Disk mode enabled, it makes it much more difficult if not impossible.
    Do you have access to another Mac that supports being connected to another Mac via Firewire Target Disk mode? If so, you can connect your Mini to another Mac this way to retrieve your data and then you should probably consider reformatting the drive (which completely erases the drive) and then re-install Tiger and all software.

Maybe you are looking for

  • Profit Center Report and P&L difference

    Hi Experts, I have setup the following scenario with Profit Centers: I created a Profit Center called 'A' and another called 'B'. Then I created a Distribution rule 'AB' directly allocates 75% to A and 25% to B. I added an Invoice for a line total of

  • Struts - Data pass from Action class to JSP

    hello , I am new to struts and have a strange question in my mind . How do we pass business logic data from action class to JSP.Do we use session object or any other best way to be used to pass data. Example scenario: Once the user logins into applic

  • Not able to select "all devices" in device selector

    I am having a problem selecting "all devices" in device selector in most cases in lms4.1.  When selecting "all devices" it show up zero.  Instead i have to choose "device type groups"  and this takes about half a minute to show up.  In some cases I a

  • DVD Booting process is getting Freeze, Help me !!

    Hi, I'm trying to install a fresh copy of snow leopard on my MacBookPro6,2, but is not booting from DVD It gets freeze whe the apple's logo appears, I've already use this disc on other computer and Works fine, I've already made some test with my DVD

  • Digital editions not working

    My digital editions has ceased working and I am unable to re -download the program.Any helpful solutions ?