Hi
Is there any event/way to determine if the user click on a hyperlink ?
I am using Delphi 7
Alvaro
Hyperlinks
-
-
- Offizieller Beitrag
Hi,
HyperlinkEvent does it.
Julian
-
Hi
Thanks for your replyI have a break point set on the event and it never gets there.
I added the URL using InputHyperlink.
When the mouse move over the cursor changes to the Hand but that is it.AnyIdeas ?
-
- Offizieller Beitrag
Hi,
You said 'click'. The Hyperlink event is triggered wehn the user double clickes. There is a property OneClickHyperlink to react on a single click as well.
To detect if the user is over a hyperlink use the hot styles. (See MailM demo)
Julian
-
Hi
Maybe I am doing something wrong here I upgrade to the 4.25 and still the HyperlinkEvent is not fired event when I doudleClick. Even if I set OneClickHyperlink = True Still does not Work
I looked into the MainMerge Demo but it does not work in there either.
Any Ideas on How to get the MainMerge Demo responding to the Click/DoubleClick event ?Alvaro
-
- Offizieller Beitrag
Hi,
are you really working with hyperlinks ?
Hyperlinks in WPTools 4 are marked with the afHyperlilink attribute.
In the MailMerge demo hyperlinks are not used. This are fields. Fields do not react on click. You need to create you own OnMouseUp handler.
Use
procedure GetPositionFromXY(x, y: Longint; var pos, lin, par, pos_in_par:
Longint);to get current par/lin at the x and y position and check that for a field.
(calculate pa and check afsAutomatic in pa^.style)Julian
-
Well
Here is what I am using to add a hyperlink
WPRichText.InputHyperlink( locationName,
url
); //
When the I move the mouse over it the mouse changes to whatever I select in HyperlinkCursor.What is the proper way to add a Hyperlink ?
Alvaro -
- Offizieller Beitrag
Hi,
well - tjis is fine. I do not understand why the event is not working for you. Please try with a new TWPRichText in a demo porject. I assume some property is wrong in your project.
Julian