home *** CD-ROM | disk | FTP | other *** search
- Global selectday
- Global selectmonth
- Global selectyear
- Global MonName(1 To 12) As String
- Global DaySelected
- Global actforecolor
- Global actbackcolor
- Global SDate
- Global DbDate As String
- Global Loading As Integer
- Global Ci As Integer
- Global reviewing
- Global selectedname As String
- Global selectedpassword As String
- Global helpmenu
-
- Global was_valid
-
- Declare Function SetWindowPos Lib "user" (ByVal h%, ByVal hb%, ByVal x%, ByVal y%, ByVal cx%, ByVal cy%, ByVal f%) As Integer
- Declare Function startsound Lib "sound.drv" () As Integer
- Declare Function OpenSound% Lib "sound.drv" ()
- Declare Function SetVoiceSound% Lib "sound.drv" (ByVal nsource%, ByVal Freq&, ByVal nDuration%)
- Declare Function CloseSound% Lib "sound.drv" ()
- Declare Function WaitSoundState% Lib "sound.drv" (ByVal mState%)
-
- Sub centerform (f As Form)
- Dim Ret As Integer
-
- 'Set window as always top mode
- If Command$ <> "" Then
- Ret = SetWindowPos(f.hWnd, -1, 0, 0, 0, 0, 3)
- End If
-
- 'Center form on the screen
- f.Left = (screen.Width - f.Width) / 2
- f.Top = (screen.Height - f.Height) / 2
- End Sub
-
- Sub InitCal (whatcontrol As Control, whatdata As Control)
-
- 'Initialize calendar
- whatcontrol.Redraw = False
- whatcontrol.HeaderStyle = whatdata.Recordset("header")
- whatcontrol.GrayAreaStyle = whatdata.Recordset("graystyle")
- whatcontrol.MonthHeaderStyle = whatdata.Recordset("monthheader")
- whatcontrol.YearHeaderStyle = whatdata.Recordset("yearheader")
- whatcontrol.WeekDayHdr = whatdata.Recordset("weekheader")
- whatcontrol.FirstDayOfWeek = whatdata.Recordset("firstday")
-
- 'Month Header Color
- whatcontrol.Element = 1
- whatcontrol.ElementBackColor = whatdata.Recordset("monbackcolor")
- whatcontrol.ElementForeColor = whatdata.Recordset("monforecolor")
-
- 'Year Header Color
- whatcontrol.Element = 3
- whatcontrol.ElementBackColor = whatdata.Recordset("yrbackcolor")
- whatcontrol.ElementForeColor = whatdata.Recordset("yrforecolor")
-
- whatcontrol.Redraw = True
-
- End Sub
-
-