Using icons from ShGetFileInfo

5 posts, 0 answers
  1. Martin Reich
    Martin Reich avatar
    1 posts
    Member since:
    Feb 2010

    Posted 22 Mar 2010 Link to this post

    I am trying to use the icon images that are retrieved from the ShGetFileInfo API call.  In this way, for my file explorer I can use all of the windows default images without having to extract them and then place them into separate files.  I would appreciate it if anyone could let me know if this is possible?  Also, is it possible to use an ImageList collection with the TreeView?

    Thanks.

    Martin Reich

    Update:

    I have created a set of classes that will place the Shell32.dll icons (or from any other file the user wishes) into an images directory below the executable.  I then point DefaultImageSrc to the file in the images directory.  This works fine except for the 'light yellow' color in the icons.  When the icon is saved to a file, the 'light yellow' is being transformed into white.  If someone can help with his issue, I will post the code for others to use.

    Update 2:

    I have gotten the correct colors working.  Using an ImageList, I put the icon into the ImageList and then save the icon from the ImageList instance.  This process handles all of the color issues.  If someone would like this code just let me know and I will send it on.
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 24 Mar 2010 Link to this post

    Hello Martin Reich,

    Thank you for posting this example - it's definitely useful showcase.

    All the best,
    Miro Miroslavov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. OverCoded
    OverCoded avatar
    34 posts
    Member since:
    Mar 2010

    Posted 14 Jun 2010 Link to this post

    I am confused by this post. I have not been able to find an ImageList anywhere in WPF controls or the WPF Radcontrols. I am trying to get icons and checkboxes in my treeview if an imagelist would do it I would like to know how to implement it. thanks
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 17 Jun 2010 Link to this post

    Hi Mark Coe,

    There is no ImageList component in our suit. This was post from our customer regarding some special icons. If you want to have check boxes or images in your RadTreeView, you could refer to this help article.
    If you have further questions regarding RadTreeView, please contact us. (It will be better in new support ticket.).
    Thank you.

    Sincerely yours,
    Miro Miroslavov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 09 Apr 2011 Link to this post

    Hello Martin,

    I'd like to see this code if possible. i'm trying to implement the same thing in an application. Thanks.
Back to Top
UI for WPF is Visual Studio 2017 Ready