home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin MDIForm MDIForm1
- Caption = "MDIForm1"
- ClientHeight = 3900
- ClientLeft = 2205
- ClientTop = 1980
- ClientWidth = 5310
- Height = 4590
- Left = 2145
- LinkTopic = "MDIForm1"
- Top = 1350
- Width = 5430
- Begin PictureBox StatusBarPic
- Align = 2 'Align Bottom
- BackColor = &H00C0C0C0&
- Height = 360
- Left = 0
- ScaleHeight = 330
- ScaleWidth = 5280
- TabIndex = 1
- Top = 3540
- Width = 5310
- Begin Label StatusLab
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 195
- Left = 60
- TabIndex = 2
- Top = 60
- Width = 45
- End
- End
- Begin PictureBox ToolbarPic
- Align = 1 'Align Top
- BackColor = &H00C0C0C0&
- Height = 525
- Left = 0
- ScaleHeight = 495
- ScaleWidth = 5280
- TabIndex = 0
- Top = 0
- Width = 5310
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 11
- Left = 4470
- Picture = MAINMDI2.FRX:0000
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 14
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 10
- Left = 4110
- Picture = MAINMDI2.FRX:0182
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 13
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 9
- Left = 3750
- Picture = MAINMDI2.FRX:0304
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 12
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 8
- Left = 3300
- Picture = MAINMDI2.FRX:0486
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 11
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 7
- Left = 2850
- Picture = MAINMDI2.FRX:0608
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 10
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 6
- Left = 2490
- Picture = MAINMDI2.FRX:078A
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 9
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 5
- Left = 2130
- Picture = MAINMDI2.FRX:090C
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 8
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 4
- Left = 1680
- Picture = MAINMDI2.FRX:0A8E
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 7
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 3
- Left = 1320
- Picture = MAINMDI2.FRX:0C10
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 6
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 2
- Left = 870
- Picture = MAINMDI2.FRX:0D92
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 5
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 1
- Left = 510
- Picture = MAINMDI2.FRX:0F14
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 4
- Top = 60
- Width = 360
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 330
- Index = 0
- Left = 150
- Picture = MAINMDI2.FRX:1096
- ScaleHeight = 330
- ScaleWidth = 360
- TabIndex = 3
- Top = 60
- Width = 360
- End
- Begin Timer Timer1
- Enabled = 0 'False
- Interval = 500
- Left = 4860
- Top = 0
- End
- Begin ccSbcEasy SbcEasy1
- ForceActive = 0 'False
- ForceCtlBox = 0 'False
- Left = 4380
- MouseTransit = 1 'Track windows only
- MouseTransitNC = 1 'NC not a window
- Top = -30
- End
- End
- Begin Menu filemenu
- Caption = "&File"
- Begin Menu filenewmenu
- Caption = "&New"
- End
- Begin Menu fileexitmenu
- Caption = "E&xit"
- End
- End
- Option Explicit
- Sub fileexitmenu_Click ()
- Unload Me
- End Sub
- Sub LoadTagProperties ()
- 'The tag property strings are kept in a separate module
- 'so you can easily switch between languages. The ideal way
- 'to do this is to use another file which contains the
- 'strings for all the different languages this product
- 'supports and load the appropriate strings based on the
- 'language settings in their win.ini file.
- Picture1(0).Tag = TOOLTIP_FILENEW
- Picture1(1).Tag = TOOLTIP_OPEN
- Picture1(2).Tag = TOOLTIP_SAVE
- Picture1(3).Tag = TOOLTIP_LINE
- Picture1(4).Tag = TOOLTIP_ARC
- Picture1(5).Tag = TOOLTIP_BOLD
- Picture1(6).Tag = TOOLTIP_ITALIC
- Picture1(7).Tag = TOOLTIP_UNDERLINE
- Picture1(8).Tag = TOOLTIP_MACRO
- Picture1(9).Tag = TOOLTIP_CAPTURE
- Picture1(10).Tag = TOOLTIP_REPORT
- Picture1(11).Tag = TOOLTIP_CUT
- End Sub
- Sub MDIForm_Load ()
- 'show a mdi child form just for fun
- MDIChild.Show
- 'load tag properties of controls with tooltips and status help
- LoadTagProperties
- End Sub
- Sub MDIForm_Unload (Cancel As Integer)
- 'unload the tooltip form when this is being unloaded
- Unload ToolTipForm
- End Sub
- Sub SbcEasy1_MouseEnter (FormDesc As String, ControlDesc As String)
- Dim hactive%
- 'if this is not the active app, do not try to display the tooltip,
- 'you will still get mouse enter and mouse exits when another
- 'app is active
- hactive% = GetActiveWindow()
- 'hactive is the topmost level window for the active app
- If (hactive% = 0) Or (hactive% <> Me.hWnd) Then Exit Sub
- 'update the statusbar with current status if any
- UpdateStatusBar SbcEasy1.TransitHctl, StatusLab
- 'start the timer if it is over one of our "tooltips" controls,
- 'it will pop up the tooltips form
- Timer1.Enabled = True
- End Sub
- Sub SbcEasy1_MouseExit (FormDesc As String, ControlDesc As String)
- 'clear status bar, stop the timer, and hide the tooltip form
- UpdateStatusBar 0, StatusLab
- Timer1.Enabled = False
- ShowToolTip 0
- End Sub
- Sub Timer1_Timer ()
- 'if the mouse stayed in this control for the
- 'specified interval, then bring up the tooltip
- 'form if there is a tooltip to display for this control
- Timer1.Enabled = False
- ShowToolTip SbcEasy1.TransitHctl
- End Sub
-