FocusedFieldIndex

表單、互動、資料類型

描述

TPDFlibFormSession 的唯讀屬性,持有取得焦點的欄位或暫時 Widget 索引

焦點只會經由焦點路徑改變,因此 /Bl 與 /Fo 的分派以及前一個編輯的提交或取消,總是發生在變更之前

被否決的 /Fo 動作會把值清為 0,並透過 OnFocusChanged 回報這次轉換

session 重設與附加另一個程式庫執行個體也會清除此值

宣告

property FocusedFieldIndex: Integer read FFocusedFieldIndex;

值

傳回取得焦點的欄位或暫時 Widget 索引;沒有 Widget 取得焦點時為 0

另請參閱

FocusField, FocusNext, FocusAt, Blur, EditingFieldIndex, HoveredFieldIndex, PressedFieldIndex, TPDFlibFormSession