[SOLVED]MarkupImage should implement MarkupInline? |
Post Reply |
Author | ||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 02 March 2010 at 4:37pm |
|
Using Markup strings, you can do something like this:
to include an image in a hyperlink. However, with the MarkupLabel & MarkupObjects, this fails (Type mismatch):
Should the MarkupImage object implement the MarkupInline interface? |
||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
Hi,
When Markup Parser see Inline that is not Inline type object it automatically add parent InlineUIContainer for it.
So your code should look like
Dim lo_Container As XtremeMarkup.MarkupInlineUIContainer
Set lo_Container = mc.CreateObject("InlineUIContainer") lo_Container.Child = lo_Image .Inlines.Add lo_Container
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
|
Thanks a lot Oleg, that worked great.
The parser seems to do this automatically for MarkupRun objects - can it do it automatically for MarkupImage objects so we don't have to go through the extra container steps? |
||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
Hi,
You need it for Image - MarkupImage is FrameworkElement derived class.
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
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 |