Print Page | Close Window

Use SVG file in Markup from resources

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24534
Printed Date: 22 December 2024 at 12:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Use SVG file in Markup from resources
Posted By: KrustyKrab
Subject: Use SVG file in Markup from resources
Date Posted: 13 December 2024 at 4:55am
Using Codejock 24.0.0 I want to use a SVG image directly in Markup code by accessing from the resources. The goal is to create a custom Markup code with different (text) elements and SVG images.

I figured out that I can use the file path to my SVG image in Markup. The following is working fine and the SVG image is displayed.
CString string = _T("<Image Width='100' Height='100' Source='C:\\myFile.svg'/>");
m_wndStatic.SetMarkupText(string);

Now I would like to use a resource ID to use my SVG file in Markup but the following does not work for me:
CString string = _T("<Image Width='100' Height='100' Source='IDR_MY_SVG'/>");
m_wndStatic.SetMarkupText(string);

What can I do to use my SVG image directly in Markup code by using a resource ID?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net