Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > MarkupLabel Control
  New Posts New Posts RSS Feed - Markup & use <Image Source=...>
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup & use <Image Source=...>

 Post Reply Post Reply
Author
Message
Hawk78 View Drop Down
Groupie
Groupie


Joined: 20 November 2012
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawk78 Quote  Post ReplyReply Direct Link To This Post Topic: Markup & use <Image Source=...>
    Posted: 06 December 2012 at 5:38am
Hi,
For displaying larger images (not icons) i usually use:
 
<Image Source="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?
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post 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



Back to Top
Hawk78 View Drop Down
Groupie
Groupie


Joined: 20 November 2012
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawk78 Quote  Post ReplyReply Direct Link To This Post 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'/> "
 
 
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Hawk78 View Drop Down
Groupie
Groupie


Joined: 20 November 2012
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hawk78 Quote  Post ReplyReply Direct Link To This Post Posted: 24 June 2013 at 9:19am
Smile perfect! Using "TaskPanelGlobalSettings" Object was the solution!
 
Thanks so much! Clap
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.140 seconds.