Hello Nigel,
when i do that before Loading then there is no highlight. When i then say Editing:=true the Highlighting is still not visible.
IEGlobalSettings().PdfViewerDefaults.FormFieldAlpha := 0;
is a Global Setting. When i have more than one PDFForm open that meens the Setting is changed for all?
I have now done following:
if actReadOnly.Checked then
begin
ActReadOnly.ImageIndex:=232;
FPDF_SetFormFieldHighlightColor(ImageEnViewPDF.PdfViewer.Document.FormHandle, 0, Default_PDF_Form_Field_Color{IEGlobalSettings().PdfViewerDefaults.FormFieldColor});
end
else begin
ActReadOnly.ImageIndex:=107;
FPDF_SetFormFieldHighlightColor(ImageEnViewPDF.PdfViewer.Document.FormHandle, 0, clNone);
end;
Best regards
Ralf