Docs de PDFiumPas

TabStop Propiedad

Esta entrada API conserva identificadores, firmas, bloques de código y términos PDF en su forma original.
Componente: TPdfView  ·  Unidad: PDFium
Indica si el usuario puede dar foco al visor PDF presionando la tecla Tab

Sintaxis

property TabStop: Boolean; // published, inherited from TWinControl

Descripción

Cuando TabStop es True, el visor PDF entra en el ciclo de tabulación del formulario. Al presionar Tab mientras otro control tiene el foco, eventualmente el foco llega al visor; a partir de ahí se activan atajos como Page Up / Page Down, las flechas de desplazamiento y el manejador de búsqueda definido en OnKeyDown. Mantener el visor enfocable es importante para accesibilidad: lectores de pantalla y usuarios que solo usan teclado necesitan llegar al área del documento

Notas

Es una propiedad persistente; TabStop y TabOrder se guardan en el archivo del formulario. VCL y LCL la respetan del mismo modo; LCL la mapea al indicador de focusability del widget subyacente. La selección de texto gobernada por AllowUserTextSelection solo reacciona a arrastres del mouse y entrada de teclado cuando el visor tiene foco, así que desactivar TabStop obliga al usuario a hacer clic antes de seleccionar por teclado. Usa OnEnter / OnExit para reflejar el foco en la UI

Ejemplo

// Make the viewer fully keyboard-accessible and the first tab stop
procedure TForm1.FormCreate(Sender: TObject);
begin
  PdfView1.TabStop := True;
  PdfView1.TabOrder := 0;
  PdfView1.OnKeyDown := PdfView1KeyDown;
end;

procedure TForm1.PdfView1KeyDown(Sender: TObject;
  var Key: Word; Shift: TShiftState);
begin
  if (Key = VK_F3) then PdfView1.FindNext
  else if (Key = Ord('C')) and (ssCtrl in Shift) then
    Clipboard.AsText := PdfView1.SelectedText;
end;

Vea también

TabOrder, AllowUserTextSelection, OnKeyDown, OnKeyPress