[Stackoverflow] [Progress OpenEdge ABL] PDFTron Tab Navigation

Status
Not open for further replies.
J

John Haffenreffer

Guest
Is it possible to capture the Tab key press in a PDFTron PDFViewCtrl or PDFViewer? I'm writing a Pdf viewer program in OpenEdge using PDFTron but it's not detecting any key strokes. Below is my setup of the control. My purpose is to capture the TAB key press to set focus to the next form field. Maybe there's a different/better way?

Code:
    opdfview = new PDFViewCtrl().
    opdfview:location = new System.Drawing.Point(0,0).
    opdfview:Dock = DockStyle:Fill.
    opdfview:SetPageBorderVisibility(false).
    opdfview:SetHighlightFields(TRUE).
    opdfview:KeyPress:Subscribe(THIS-OBJECT:PDFViewerCtrl_OnKeyPress).


    METHOD PRIVATE VOID PDFViewerCtrl_OnKeyPress( INPUT sender AS System.Object, INPUT e AS System.Windows.Forms.KeyPressEventArgs ):
        MESSAGE "KEYPRESS".
        RETURN.

    END METHOD.

I have also tried assigning the PDFViewer the same event handler and still no dice. Any suggestions? I'd also take an answer in C# as it could be converted to OpenEdge.

Continue reading...
 
Status
Not open for further replies.
Top