home *** CD-ROM | disk | FTP | other *** search
Visual Basic class definition | 1998-05-14 | 722 b | 32 lines |
- VERSION 1.0 CLASS
- BEGIN
- MultiUse = -1 'True
- END
- Attribute VB_Name = "CWaitCursor"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = True
- Attribute VB_PredeclaredId = False
- Attribute VB_Exposed = False
- Attribute VB_Ext_KEY = "SavedWithClassBuilder" ,"Yes"
- Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
- Option Explicit
-
- Private m_nPointer As MousePointerConstants
-
-
- Public Sub SetCursor(Optional nPointer As MousePointerConstants = vbHourglass)
- Screen.MousePointer = nPointer
- End Sub
-
- Public Sub Restore()
- Screen.MousePointer = m_nPointer
- End Sub
-
- Private Sub Class_Initialize()
- m_nPointer = Screen.MousePointer
- End Sub
-
- Private Sub Class_Terminate()
- Restore
- End Sub
-