请输入您要查询的百科知识:

 

词条 Windows wait cursor
释义

  1. History

  2. Usage

  3. References

{{Infobox software
| name = Wait cursor
| screenshot = Windows 8 + 10 wait cursor.gif
| screenshot_size = 64px
| caption = The wait cursor in Windows 8 and Windows 10
| other_names = Busy cursor

Hourglass cursor


| operating system = Microsoft Windows
| genre = Cursor
}}

The Windows wait cursor (known as the hourglass cursor until Windows Vista) is a cursor that indicates that an application is busy performing an operation. It can be accompanied by an arrow if the operation is being performed in the background.

The wait cursor can display on programs using the Windows API.

History

From the first version of Windows to Windows XP, it was represented by an hourglass, which was inspired by the waiting cursor in Apple Lisa.[1]

Windows Vista introduced a new, animated wait cursor. The wait cursor in Windows 7 was almost identical.[2] It is possible, however, to change the appearance of the cursor into the original hourglass cursor.

Windows 8 introduced a new flat wait cursor. The new cursor is light blue on dark blue and removes the fade and the particles from the animated part.

Usage

There are two uses for the wait cursor: short term and long term. The wait cursor is a shared resource in the system across applications and windows. By default, when the mouse cursor is in a window, the cursor shown is controlled by the window’s registered window class and handling of WM_SETCURSOR. Different scenarios can be used instead.[3]

In Microsoft Foundation Class Library (MFC) the wait cursor can be controlled by CWaitCursor. If a local instance is created, the wait cursor is reset when the instance goes out of scope. It is used primarily for short term wait cursors.[3]

In Windows Forms, each Control instance has a Cursor property, which can be controlled by the application itself. Control.Cursor is the cursor shown when the mouse is in the control’s region; System.Windows.Forms.Cursor.Current is the cursor shown when the mouse enters any window of the application.[3]

For long term wait cursors, the UseWaitCursor property can be set (either Control level or application level) in one occasion and be reset in the other.[3]

References

1. ^{{cite news |url=http://www.mactech.com/articles/mactech/Vol.05/05.05/Hourglass/index.html |title=Lisa's Hourglass Is Back! |work=MacTech |publisher=Xplain |volume=5 |issue=5 |first=Mike |last=Morton |location=Waipahu, HI}}
2. ^{{cite web |url=http://www.istartedsomething.com/20090815/windows-7-busy-cursor-misses-a-beat/ |title=Windows 7 “busy” cursor misses a beat |website=istartedsomething.com |first=Long |last=Zheng |date=15 August 2009}}
3. ^{{cite web|title=Wait cursor in Windows and C#|url=http://binglongx.com/2010/05/28/wait-cursor-in-windows-and-c/|website=Binglong's space|accessdate=26 August 2015}}
{{Error messages}}

1 : Windows components

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/14 3:10:09