All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

accepts-focus-p Generic Function

Summary

Determines if an element accepts the focus.

Package

capi

Signature

accepts-focus-p element => result

Arguments
element
A CAPI element.
Values
result
A boolean.
Description

The generic function accepts-focus-p determines if the element element accepts the focus for user input, and controls tabstops.

The method on element uses the value of the accepts-focus-p slot, but methods on some subclasses override this.

accepts-focus-p also influences whether a pane is a tabstop. On Microsoft Windows a pane acts as a tabstop if and only if the function accepts-focus-p returns true and the element accepts-focus-p initarg value is :force. On Motif and Cocoa, a pane acts as a tabstop if and only if the function accepts-focus-p returns true.

See also

element
pane-has-focus-p
set-pane-focus
3.1.5 Focus


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:33:57