Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ImageManager LoadVectorIconCode
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ImageManager LoadVectorIconCode

 Post Reply Post Reply
Author
Message
Muckl View Drop Down
Newbie
Newbie
Avatar

Joined: 23 July 2018
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Muckl Quote  Post ReplyReply Direct Link To This Post Topic: ImageManager LoadVectorIconCode
    Posted: 24 July 2025 at 10:49am
Is there a functioning example in which SVG icons with LoadVectoriconcode are invited to the command bars' image manager?
The function returns true, but no picture is shown.
Back to Top
agontarenko View Drop Down
Moderator Group
Moderator Group


Joined: 25 March 2016
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote agontarenko Quote  Post ReplyReply Direct Link To This Post Posted: 12 hours 46 minutes ago at 5:40am
Hello,

This is XAML code in string which loadded into tree item

    Dim xamlCodeIcon As String
    xamlCodeIcon = "<Viewbox xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Stretch='Uniform' Width='16' Height='16'><Canvas Width='16' Height='16' Canvas.Left='0' Canvas.Top='0'><Canvas><Path Data='M15.8749,7.4702L14.1822,5.805C14.115,5.7377,14,5.7854,14,5.8805V10.5c-1.8147,-1.8304,-4.2548,-4.3794,-4.7073,-4.8048c-0.7002,-0.7,-2.4873,-1.9962,-4.3207,-1.9962c-2.8975,0,-4.9306,1.8952,-4.9306,4.6087v0.0119c0,1.2377,1.0081,4.7498,1.2357,5.5269c0.0267,0.091,0.1101,0.1535,0.2049,0.1535h1.8977c0.144,0,0.2468,-0.1393,0.2039,-0.2768c-0.4616,-1.4768,-1.3258,-4.4239,-1.3391,-5.4213c0.0031,-1.7859,1.4173,-2.4225,2.7408,-2.4225c1.0669,0,2.3542,0.9378,2.7776,1.3657l0.0331,0.0281C8.1475,7.5993,10.6116,10.0252,12.5,12H7.9043c-0.0951,0,-0.1427,0.115,-0.0755,0.1822l1.6414,1.6927c0.0801,0.0801,0.1887,0.1251,0.3019,0.1251h6.0144c0.1179,0,0.2135,-0.0956,0.2135,-0.2135V7.7721C16,7.6589,15.955,7.5502,15.8749,7.4702z' Fill='#3E79B4'/></Canvas></Canvas></Viewbox>"
    Dim res As Boolean
    res = TreeViewIcons.Icons.LoadVectorIconCode(xamlCodeIcon, 0, 16, xtpImageNormal)

Regards,
Artem Gontarenko
Back to Top
Muckl View Drop Down
Newbie
Newbie
Avatar

Joined: 23 July 2018
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Muckl Quote  Post ReplyReply Direct Link To This Post Posted: 12 hours 6 minutes ago at 6:20am
Thank you very much for the answer. If you replace LoadBitmap in your example "Suite Controls - Treeview" with this code , res will also return TRUE, but no images will be shown.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.