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.
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)
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 !)
I personally filed a report for drawinto an OpenGLSurface <https://xojo.com/issue/35027> and amazingly enough, it has been noted as ‘Fixed’ on August 25, so hopefully this will work in 2014R3.