
- #Xojo htmlviewer zoom pdf
- #Xojo htmlviewer zoom code
- #Xojo htmlviewer zoom plus
- #Xojo htmlviewer zoom windows
Links and Show Notes: Get Connected Pro: Preshow, postshow, no ads.
#Xojo htmlviewer zoom code
#Xojo htmlviewer zoom pdf
Select from Displayed window "Adobe PDF Reader" (This will assign a ProgramID to OLEContainer1) Select "Choose ActiveX Control." (Small window appears with list of Activex Controls) Simple Example: add a OLEContainer to window1 (OLEContainer1) This will only works if you have adobe Reader installed Instead of using the HTMLViewer you can also use adobe Reader with use of a OLEContainer.

It would have been great in this instance. Too bad Monkeybread HTMLViewer class exist only for Mac. HTMLViewer is such a black box, though, it is not so easy to know the length of the document it contains. When he zooms in, the regular scroll bars are covered and new ones must then appear that take over. It is possible, just a little less convenient than the SendKeys method.īasically, as long as the user does not zooms in, the regular scrollbars can be used. 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 at but unfortunately does not work for PDF and XPS Only HTML. I found back the javascript method I new I has seen before. Matthew, your idea was excellent, but it simply does not work 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. I am sorry, but I do not see what to do right now. I tried clicking in it and then typing a key, no keydown event. The problem with HTMLViewer seems even worse : keydown simply does not fire. 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. 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. So if your window is entitled “My Application”, you will go :Īs Matthew said, do not forget to set focus to the HTMLViewer before you use the method. The way Sendkeys work is by sending keys to a window present on the screen by its title. I have already successfully used the code posted by John Hansen in the thread Matthew Combatti indicated. Do I have to specify a handle or something? I found the way to send Ctrl etc, and it does send keys but I can’t receive them in my Window. I realized only after posting that I did not manage scrolling It would require a lot more work. Michel thanks for your enthousiastic answer. I looked into SendKeys but I can’t find the keycode for Ctrl- and Ctrl+… any idea? I tried to look it up by checking what Xojo reports with AsyncKey but it doesn’t respond. You mention you are viewing PDF with HTMLViewer on your system, so I hope the attached project works fine. With Native renderer, it wants to open in the default browser or save the file, and with WebKit, nothing…

#Xojo htmlviewer zoom windows
Unfortunately, on Windows 8.1, for some reason, I was never able to load any PDF into an HTMLViewer
#Xojo htmlviewer zoom plus
Add the Container Control to the window, plus two buttons + and - with in each a call to the methods to increase and decrease the size.

HTMLViewer1.Height = HTMLViewer1.height/1.10 HTMLViewer1.Width = HTMLViewer1.Width/1.10 HTMLViewer1.top = -()/2Įlseif self.Width > HTMLViewer1.Width then HTMLViewer1.Height = HTMLViewer1.height1.10 HTMLViewer1.Width = HTMLViewer1.Width 1.10
