Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Hyperlink-Click Event in Markups
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hyperlink-Click Event in Markups

 Post Reply Post Reply
Author
Message
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Topic: Hyperlink-Click Event in Markups
    Posted: 03 September 2008 at 2:58pm
Thank you for Beta 12.1
 
But how do I use now the Args parameter in the Click event?

Public Sub Click(ByVal Sender As Object, ByVal Args As Object)
    ...???
End Sub
 
I can't find a sample or some explanation in the "markupguide.chm".
 
I found only this:
 
Public Sub Hyperlink_Click(Reserved1 As Object, Reserved2 As Object)
    MsgBox "Clicked"
End Sub
Private Sub Form_Load()
    Label1.EnableMarkup = True
    Label1.MarkupContext.SetMethod Me, "Hyperlink_Click"
    Label1.Caption = "<TextBlock>Click <Hyperlink Click='Hyperlink_Click'>" & _
                  "this</Hyperlink> link</TextBlock>"
End Sub
 
 
But how does it work now?
 
THANK YOU FOR HELP!!!
 
Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2008 at 12:57pm
Hello,
 
please any help? ;-(
Back to Top
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2008 at 6:15am
seems Oleg is on holidays 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2008 at 4:10am
Hi,
Yes, I was :)
 
Jebo, there is new \Common\VB\MarkupSample  sample.
 
 
Public Sub HyperClick(ByVal Sender As MarkupObject, ByVal Args As MarkupRoutedEventArgs)
    MsgBox "Click"
End Sub
 
 
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2008 at 4:14am
Hi Oleg,
 
OK, but "HOW" do I interpret this both parameters (MarkupObject + MarkupRoutedEventArgs)?
 
Because I've many Links in my Label-Control and now I must detect which of my Links was clicked!!!
 
So I need something like This:
 
Msgbox "Clicked: " & sender.name & " / " & Args.Event.Name & " / " & Args.Source
 
But i seems, that ONLY "Args.Event.Name" will work and will tell me only "Ckick"!  ???
For all the other ones a error will occurs!!!
 
Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Posted: 08 September 2008 at 4:22am
...and do I also "need" the new MarkupLabel-control or is this control optional?
 
Because if I don't put the MarkupLabel-control to my project, there is now "MarkupObject" "MarkupRoutedEventArgs" objects in my project?
Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2008 at 10:53am
Can Anybody give me a hint?
 
I feel me realy confused about the new Markup-Events!
 
PLEASE HELP!!!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 1:19am
Hello,
 
Here sample: Markup.zip
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Jebo View Drop Down
Senior Member
Senior Member


Joined: 27 October 2005
Location: Germany
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jebo Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 4:19am
Ahhh, I understand now, "Hyperlink Tag" is the right way!
 
BIG THX!!!
Back to Top
Moonlite View Drop Down
Newbie
Newbie


Joined: 19 January 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Moonlite Quote  Post ReplyReply Direct Link To This Post Posted: 08 July 2009 at 12:50am
hi, Oleg. i'm trying to convert your sample to C# but always get error. do i miss something? thanks.
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.187 seconds.