AngelicTech / thtmlviewer

Automatically exported from code.google.com/p/thtmlviewer
Other
1 stars 1 forks source link

THTMLViewer OnLink and OnObjectClick doesn't work on XE7 #400

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which steps will reproduce the problem?
1. Put a THTMLViewer component on a new form
2. Add a simple "Form1.Caption := href;" and/or "Form1.Caption := onclick;" in 
OnLink and/or OnObjectClick respectively
3. Add some script to load a simple HTML script contain some kind "<a 
href='some link' onclick='some click text or whatever'>Text Link</a>"
4. Run the project
5. Click the link

What is the expected output? What do you see instead?
Form caption changed to whatever href or onclick text on clicked link, instead 
the event seems doesn't fired at all

THTMLViewer version: 11.5
Delphi version: XE7
Operating System: Windows 7

Original issue reported on code.google.com by kqh...@gmail.com on 25 Feb 2015 at 4:07

Attachments:

GoogleCodeExporter commented 9 years ago
Hi kqha84,

unfortunately these event handlers do not work as you expected: 

The OnLink event occurs when a <LINK> tag is found while the HTML file is being 
parsed. 

The OnObjectClick event occurs when the mouse is left clicked on an Object. 
Currently, all Form controls support this event. 

Please refer to htmlhelp\THtmlViewer.chm resp. files in htmlhelp\html for more 
details.

OrphanCat

Original comment by OrphanCat on 5 Mar 2015 at 11:02