Print Page | Close Window

Markup & use <Image Source=...>

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=20398
Printed Date: 26 April 2024 at 6:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup & use <Image Source=...>
Posted By: Hawk78
Subject: Markup & use <Image Source=...>
Date Posted: 06 December 2012 at 5:38am
Hi,
For displaying larger images (not icons) i usually use:
 
<Image Source=" file://Help.bmp/ - file://Help.bmp"/ >
 
Now i want use embedded images or images from included ressources:
 
<Image Source="13"/>
 
In my sourcecode i use the "LoadBitmap" Function e.g.:
 
wndTaskPanel.Icons.LoadBitmap App.Path & "\help.bmp", 13, xtpImageNormal
 
Unfortunately this won't work. How do i have to store images to use it by image source references?



Replies:
Posted By: Willowmaster
Date Posted: 06 December 2012 at 7:09am

Add the icons to the Markuplabel.Icons. Or add the wndTaskPanelIcons.Icons with this code: Markuplabel.Icons.AddIcons(wndTaskPanelIcons.Icons).



-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: Hawk78
Date Posted: 03 May 2013 at 6:38am
thanks for your answer.
 
How can i set the icons for a wndTaskPanel.group.item inside the caption (markup text)?
I know how to set the icon before the caption. But this icon can't be used indside the item.caption
 
This doesn't work:
 
wndTaskPanel.Icons.AddIcon myimage, 13, xtpImageNormal
wndTaskPanel.EnableMarkup = True
Set Group = wndTaskPanel.Groups.Add(100, "test")
    Group.Items.Add 101, "", xtpTaskItemTypeText
    Group.Items(1).Caption = "Loading...<Image Source='13'/> "
 
 


Posted By: jpbro
Date Posted: 03 May 2013 at 9:28am
First, you should use the TaskPanelGlobalSettings object for the markup icons, then you should also enclose your text in a TextBlock in order for the marku pto be valid. Something like this should work:


TaskPanelGlobalSettings.Icons.AddIcon myimage, 13, xtpImageNormal
wndTaskPanel.EnableMarkup = True
Set Group = wndTaskPanel.Groups.Add(100, "test")
    Group.Items.Add 101, "", xtpTaskItemTypeText
    Group.Items(1).Caption = "<TextBlock>Loading... <Image Source='13'/></TextBlock>"



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Hawk78
Date Posted: 24 June 2013 at 9:19am
Smile perfect! Using "TaskPanelGlobalSettings" Object was the solution!
 
Thanks so much! Clap



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