home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Toolbar buttons and tips"
- ClientHeight = 5925
- ClientLeft = 1425
- ClientTop = 1455
- ClientWidth = 9540
- Height = 6330
- Left = 1365
- LinkTopic = "Form1"
- ScaleHeight = 6817.808
- ScaleMode = 0 'User
- ScaleWidth = 9540
- Top = 1110
- Width = 9660
- Begin VB.PictureBox Picture1
- Height = 2055
- Left = 5640
- Picture = "toolbar.frx":0000
- ScaleHeight = 1995
- ScaleWidth = 3195
- TabIndex = 0
- Top = 960
- Visible = 0 'False
- Width = 3255
- End
- Begin Threed.SSPanel SSPanel1
- Align = 1 'Align Top
- Height = 630
- Left = 0
- TabIndex = 1
- Top = 0
- Width = 9540
- _Version = 65536
- _ExtentX = 16828
- _ExtentY = 1111
- _StockProps = 15
- BackColor = 9476264
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BorderWidth = 1
- BevelOuter = 1
- BevelInner = 1
- Begin Threed.SSRibbon ssButton
- Height = 450
- Index = 2
- Left = 2160
- TabIndex = 7
- Tag = "Underline message"
- Top = 90
- Width = 450
- _Version = 65536
- _ExtentX = 794
- _ExtentY = 794
- _StockProps = 65
- BackColor = 9476264
- GroupNumber = 4
- GroupAllowAllUp = -1 'True
- Autosize = 1
- PictureUp = "toolbar.frx":F92A
- End
- Begin Threed.SSRibbon ssButton
- Height = 450
- Index = 1
- Left = 1560
- TabIndex = 6
- Tag = "Italic message"
- Top = 90
- Width = 450
- _Version = 65536
- _ExtentX = 794
- _ExtentY = 794
- _StockProps = 65
- BackColor = 9476264
- GroupNumber = 3
- GroupAllowAllUp = -1 'True
- Autosize = 1
- PictureUp = "toolbar.frx":FED0
- End
- Begin Threed.SSRibbon ssButton
- Height = 450
- Index = 0
- Left = 960
- TabIndex = 5
- Tag = "Bold Message"
- Top = 90
- Width = 450
- _Version = 65536
- _ExtentX = 794
- _ExtentY = 794
- _StockProps = 65
- BackColor = 9476264
- GroupNumber = 2
- GroupAllowAllUp = -1 'True
- Autosize = 1
- PictureUp = "toolbar.frx":10476
- End
- Begin Threed.SSCommand buttonQuit
- Cancel = -1 'True
- Height = 375
- Left = 6360
- TabIndex = 4
- Tag = "Quit Program"
- Top = 120
- Width = 1455
- _Version = 65536
- _ExtentX = 2566
- _ExtentY = 661
- _StockProps = 78
- Caption = "&Quit"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.24
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin Threed.SSRibbon buttonPicture
- Height = 450
- Left = 360
- TabIndex = 3
- Tag = "Background Graphic"
- Top = 90
- Width = 450
- _Version = 65536
- _ExtentX = 794
- _ExtentY = 794
- _StockProps = 65
- BackColor = 0
- GroupAllowAllUp = -1 'True
- Autosize = 1
- PictureUp = "toolbar.frx":10A1C
- End
- End
- Begin VB.Label lblTooltip
- Alignment = 2 'Center
- BackColor = &H00C0FFFF&
- Height = 375
- Left = 2760
- TabIndex = 8
- Top = 2040
- Visible = 0 'False
- Width = 2055
- End
- Begin VB.Label lblDisplayText
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "Welcome!"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Arial"
- Size = 72
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1815
- Left = 1440
- TabIndex = 2
- Top = 3240
- Width = 6855
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Sub ShowToolTip(left As Integer, text$)
- lbltooltip.Caption = text$
- lbltooltip.Move left + 400, 800, TextWidth(text$) + 80, 275
- lbltooltip.Visible = True
- End Sub
- Private Sub buttonPicture_Click(Value As Integer)
- If Value = False Then
- Form1.Picture = LoadPicture()
- Else
- Form1.Picture = Picture1.Picture
- End If
- End Sub
- Private Sub buttonPicture_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowToolTip(buttonPicture.left, buttonPicture.Tag)
- End Sub
- Private Sub buttonQuit_Click()
- Unload Me
- End
- End Sub
- Private Sub buttonQuit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowToolTip(buttonQuit.left, buttonQuit.Tag)
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- lbltooltip.Visible = False
- End Sub
- Private Sub ssButton_Click(Index As Integer, Value As Integer)
- Select Case Index
- Case 0
- lblDisplayText.FontBold = Not (lblDisplayText.FontBold)
- Case 1
- lblDisplayText.FontItalic = Not (lblDisplayText.FontItalic)
- Case 2
- lblDisplayText.FontUnderline = Not (lblDisplayText.FontUnderline)
- End Select
- End Sub
- Private Sub ssButton_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Call ShowToolTip(ssButton(Index).left, ssButton(Index).Tag)
- End Sub
- Private Sub SSPanel1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- lbltooltip.Visible = False
- End Sub
-