Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
marek
Posted - Jul 06 2021 : 15:24:21 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
3 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Jul 09 2021 : 20:19:57 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;
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
xequte
Posted - Jul 08 2021 : 00:46:10 Hi Marek
In v10.0.2 we have added the following PDFViewer events: