次の方法で共有


SYS(2800) - Accessibility Support

Disables or enables Microsoft® Active Accessibility® support and sets certain options to track the keyboard focus of the currently selected control in a Visual FoxPro form.

SYS(2800 [,nFlag] )

Parameters

  • nFlag
    Disables accessibility support or enables various accessibility functionality according to the following table.

    Note   The flags are additive.

    nFlags Description
    0 Disables Active Accessibility (AA)
    1 Enables WM_GETOBJECT
    2 Enables NotifyWinEvent
    4 Certain methods of IAccessible, such as accDoDefaultAction or accSelect will post a message to process the client's request and return to the client immediately. If this flag is set, then Visual FoxPro will not return to Accessibility clients until that action is complete.
    16 ACCNAME returns object Name rather than Caption. Use for testing.
    32 This flag is for backward compatibility. Many Accessibility clients, such as Magnifier, can follow the caret.

    The default for nFlag is 3, which is the sum of "Enables WM_GETOBJECT" (2) + "Enables NotifyWinEvent" (3).

    For details on WM_GETOBJECT, NotifyWinEvent, and accDoDefaultAction, see the Accessibility topic in the User Interface Services section of Platform SDK in the MSDN Online Library.

Return Value

Numeric – The value of the current Active Accessibility setting.

Remarks

If you use this function when you are designing an application to comply with Windows 2000 Logo requirements, you will be able to verify the functionality of accessibility aids such as the Microsoft Magnifier.

This function is only effective for native Visual FoxPro controls. Third party ActiveX controls may or may not correctly track keyboard focus with accessibility aids enabled. Contact the control vendor for information on the behavior with accessibility aids of a specific control.

See Also

SYS( ) Functions Overview