1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

PDFTron Tab Navigation

Discussão em 'StackOverflow' iniciado por fdantas, Dezembro 18, 2020.

  1. fdantas

    fdantas Administrator Moderador

    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?

    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...

Compartilhe esta Página