Available Event Handlers for an HTMLViewer

Hi,

Here is the list of the available Event Handlers for an HTMLViewer:

But where are the Event Handlers inherited from RectControl ?

Or how did I missed something ?

I wanted to add a mechanism to drop an url onto the HTMLViewer and set it to it to go there.

Now that I wrote this text, I think that I can set that in Window’s DropObject !

Note in the screen shot, the red dot circle to close the window says the screen shot comes from OS X and the + ToolBar Button on the top left.

[quote=133406:@Emile Schwarz]Hi,

Here is the list of the available Event Handlers for an HTMLViewer:

But where are the Event Handlers inherited from RectControl ?[/quote]

HTMLViewer is by many aspects unique to itself. Some of the events even do not work at all, like Keydown. Not so sure about dragEnter and DragExit either. Several methods described in the LR do not work either, noticeably DrawInto.

As default, you can drop a shortcut over it and it will open automatically.

The reason is that it’s a WebViewer which consumes most events by itself not passing them to the hosting app, e.g. the xojo runtime.

Indeed. I quickly verified my conjecture about DragEnter/DragExit, and indeed the control consumes the event.

JavaScript has its own drag events that can be used :
http://help.dottoro.com/ljccpmjk.php

You can add drag and drop via JavaScript injection (if you do not have control over the HTML source)… Xojo could capture the drag/drop events in the HTMLViewer plugin and pass them along to the framework, but for whatever they have not done so at this point… I am looking at adding it to my HTMLViewer subclass, but in the meantime you’d best be using JS or MBS (if it adds drag/drop support)

Thank you Michel for the info.

Now I undestand why I could not get DrawInto working… (I saw code that is meant to do that in an unusual event…)

KeyDown: I think it works (worked on last Friday ?); I use it as a workaround to test something… So much water passed thru the bridge since yesterday. Do not even ask me what I’ve done yesterday (so for the day before !)

See https://forum.xojo.com/8025-htmlviewer-image-to-canvas-question

Do you have the bug reports # ?

138 cases found (the search string was: HTMLViewer Windows)

[quote=133606:@Emile Schwarz]Do you have the bug reports # ?

138 cases found (the search string was: HTMLViewer Windows)[/quote]

Nope. In the link I posted above, Matthew Combatti mentions the first report on that bug dates back to 2008.

The only one I found is feedback://showreport?report_id=16043

I personally filed a report for drawinto an OpenGLSurface feedback://showreport?report_id=35027 and amazingly enough, it has been noted as ‘Fixed’ on August 25, so hopefully this will work in 2014R3.