Markup & use <Image Source=...> |
Post Reply |
Author | |
Hawk78
Groupie Joined: 20 November 2012 Status: Offline Points: 14 |
Post Options
Thanks(0)
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?
|
|
Willowmaster
Senior Member Joined: 12 July 2010 Location: Netherlands Status: Offline Points: 180 |
Post Options
Thanks(0)
|
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 |
|
Hawk78
Groupie Joined: 20 November 2012 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
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'/> " |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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:
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Hawk78
Groupie Joined: 20 November 2012 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
perfect! Using "TaskPanelGlobalSettings" Object was the solution!
Thanks so much!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |