No luck.
Sendkeys works fine sending to its own window.I added keydown to the window and a msgbox to show the key received, it works quite fine.
The issue is with HTMLViewer. If I try HTMLViewer.SetFocus not only the control does not get the focus, but the IDE takes over like there was an error but shows nothing, and the app becomes frozen.
The problem with HTMLViewer seems even worse : keydown simply does not fire. I tried clicking in it and then typing a key, no keydown event.
I am sorry, but I do not see what to do right now. If the control is incapable to receive keydown events, it means the way it reacts to ctrl- and ctrl+ is coded otherwise, probably through direct access to the keyboard scan codes.
Matthew, your idea was excellent, but it simply does not work
I found back the javascript method I new I has seen before. It is at https://forum.xojo.com/10925-html-scaling-for-webhtmlviewer but unfortunately does not work for PDF and XPS Only HTML.
Now I may have to go back to the drawing board and add scroll bars to the Container Control subclass I posted before. It is possible, just a little less convenient than the SendKeys method.
Basically, as long as the user does not zooms in, the regular scrollbars can be used. When he zooms in, the regular scroll bars are covered and new ones must then appear that take over.
HTMLViewer is such a black box, though, it is not so easy to know the length of the document it contains. I will have to figure that.
Too bad Monkeybread HTMLViewer class exist only for Mac. It would have been great in this instance.