ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDFium - FormFieldFocus event needed
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

marek

15 Posts

Posted - Jul 06 2021 :  15:24:21  Show Profile  Reply
On PdfViewer.Document exists already event OnFormFieldFocus.
It is used internally so I can not use my handler.
Could you provide the event for end user too?

Greetings,
Marek

xequte

38176 Posts

Posted - Jul 08 2021 :  00:46:10  Show Profile  Reply
Hi Marek

In v10.0.2 we have added the following PDFViewer events:

ieiPDFPageLoaded, ieiPDFViewChanged, ieiPDFSelChanged, ieiPDFFieldFocused, ieiPDFFieldChanged, ieiPDFHoverText, ieiPDFHoverLink, ieiPDFHoverField, ieiPDFHoverOther

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

marek

15 Posts

Posted - Jul 09 2021 :  13:35:44  Show Profile  Reply
Hi Nigel,

the current implementation of ieiPDFFieldFocused is really "field focus changed". There is no important information about whether the field got focus or lost. Please split the event to ieiPDFFieldFocusEnter and ieiPDFFieldFocusLeave.

Greetings,
Marek
Go to Top of Page

xequte

38176 Posts

Posted - Jul 09 2021 :  20:19:57  Show Profile  Reply
Hi Marek

I have changed the events to ieiPDFFieldEnter, ieiPDFFieldLeave

Also, in the next beta there will be a FormFieldFocused property.

procedure TMainForm.ImageEnView1UserInteraction(Sender: TObject; Event:
    TIEUserInteractionEvent; Info: Integer);
begin
  // Enable the "Clear" button when a form field in a PDF document is selected
  if Event = ieiPDFFieldFocused then
    btnClear.Enabled := ImageEnView1.PDFViewer.FormFieldFocused;
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: