Controls
ID #1028
How to use animated cursor in application?
! In Global MAP MODULE('') SetCapture(LONG),LONG,PASCAL ReleaseCapture(),LONG,PASCAL LoadCursor(LONG,*CSTRING),LONG,PASCAL,RAW,NAME('LoadCursorA') LoadCursorFromFile(*CSTRING),LONG,PASCAL,RAW,NAME('LoadCursorFromFileA') WinSetCursor(LONG),LONG,PASCAL,NAME('SetCursor') END ! Global variables m_hSysCursor LONG m_hAniCursor LONG m_CursorFileName CSTRING(65) ! After Window opening m_CursorFileName = 'globe.ani' m_hAniCursor = LoadCursorFromFile(m_CursorFileName) ! Display animated cursor SetCapture(0{PROP:Handle}) m_hSysCursor = WinSetCursor(m_hAniCursor) ! Restore previous cursor ReleaseCapture() WinSetCursor(m_hSysCursor) CLEAR(m_hSysCursor)
Tags: animated cursor, window
Related entries:
- How to prevent running of Application Wizard creating new application?
- How to change first calling procedure when application started?
- How to know if user leave the application?
- How to run application that will not be displayed in task bar?
- How to know current position of mouse cursor? Do not offer MOUSEX.
Last update: 2007-07-13 14:37
Author: Igor Istomin
Revision: 1.0
You can comment on this entry