![]() |
Markup: Image hyperlink? |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 03 August 2010 at 3:35am |
In a TextBlock you simply add a Hyperlink tag to make it clickable. But how do you make an image clickable?
m_staticInfo.AddHandler(CXTPMarkupHyperlink::m_pClickEvent, CreateMarkupClassDelegate(this, &OnHyperlinkClick));
<TextBlock><Hyperlink Tag='mylink'>blah</Hyperlink></TextBlock> Works!
vs
<Image Source='file://c:\windows\Zapotec.bmp' Tag='mylink' Cursor='Hand'/> Doesn't work... :(
Maybe I need another event handler?
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Image doesn't have Click event. Use m_pMouseLeftButtonDownEvent instead. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
I tried that, but the handler never gets called! (Image is inside a grid btw.)
(Running XTP 12.0.1)
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
How your code / markup looks now ? |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
zitz ![]() Senior Member ![]() Joined: 05 October 2008 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
I add Hyperlink on image like this:
|
|
Xtreme ToolkitPro v13.1.0, static, VC++6
|
|
![]() |
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 |