KewPreview in WPViewPDF

    • Offizieller Beitrag

    >I am having a little problem with WPViewPDF.
    >I am wanting to capture the keyboard input when viewing a pdf with
    >WPViewPDF.
    >I have KeyPreview set to True on my form and I have written a procedure for
    >the OnKeyUp event.
    >When I first view a pdf I am able to capture the keyboard input with the
    >OnKeyUp event, but when I click on your component WPViewPDF and scoll or do
    >something else the OnKeyUp event never fires off again.
    >Why does the OnKeyUp event stop working? More important how do I get it to
    >stay working.

    I check that out. KeyPreview will likely not work but the KeyPress event of the component should work.

    >Wish List for WPViewPDF:
    >1. It would be really nice when printing it would switch the paper setting
    >to portrait or landscape base off the papper size of the pdf.
    Yes, this is under construction.

    >2. If PageUp, PageDown and the arrow keys would move the pdf around on the
    >screen.
    Page Up/Down scroll page wise. The curso keys will scroll the screen. The scroll wheel btw. should work alright.