home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
win
/
prg
/
vbstra
/
demoapp
/
hintdial.frm
< prev
next >
Wrap
Text File
|
1995-06-23
|
4KB
|
170 lines
VERSION 2.00
Begin Form HintDialog
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "Hint"
ClientHeight = 3930
ClientLeft = 1605
ClientTop = 1890
ClientWidth = 6735
Height = 4305
Icon = HINTDIAL.FRX:0000
Left = 1560
LinkTopic = "Form1"
ScaleHeight = 540
ScaleWidth = 540
Top = 1560
Width = 6825
Begin SSCommand biClose
Caption = "&Close"
Font3D = 3 'Inset w/light shading
Height = 495
Left = 5640
RoundedCorners = 0 'False
TabIndex = 3
Top = 120
Width = 975
End
Begin TextBox Hint
BackColor = &H00808000&
FontBold = 0 'False
FontItalic = 0 'False
FontName = "Fixedsys"
FontSize = 9
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00000000&
Height = 3135
Left = 150
MousePointer = 1 'Arrow
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Tag = "OL"
Text = "Hint"
Top = 660
Width = 6495
End
Begin PictureBox Logo
AutoSize = -1 'True
Height = 495
Left = 120
Picture = HINTDIAL.FRX:0302
ScaleHeight = 465
ScaleWidth = 480
TabIndex = 0
Top = 120
Width = 510
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "VBstrAPI.DLL Demonstration Application Hint"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 240
Left = 690
TabIndex = 1
Top = 360
Width = 4650
End
End
Option Explicit
Sub biClose_Click ()
Hint.Text = ""
Unload Me
End Sub
Sub CenterForm (TheForm As Form, OffsetLeft As Integer, OffsetTop As Integer)
Dim FLeft As Integer
Dim FTop As Integer
If TheForm.WindowState <> 0 Then Exit Sub
FLeft = ((Screen.Width - TheForm.Width) \ 2) + OffsetLeft
FTop = (((Screen.Height - TheForm.Height) \ 2) + OffsetTop) * .85
If TheForm.Left = FLeft And TheForm.Top = FTop Then Exit Sub
TheForm.Move FLeft, FTop
End Sub
Sub Form_Load ()
CenterForm Me, 0, 0
End Sub
Sub Form_Paint ()
Outlines Me
End Sub
Sub Hint_KeyPress (KeyAscii As Integer)
KeyAscii = 0
End Sub
Sub Outlines (FormName As Form)
Dim drkgray As Long
Dim fullwhite As Long
Dim i As Integer
Dim ctop As Integer
Dim cleft As Integer
Dim cright As Integer
Dim cbottom As Integer
Dim Offset As Integer
On Error Resume Next
Dim cName As Control
Offset = 0
FormName.Cls
drkgray = RGB(128, 128, 128)
fullwhite = RGB(255, 255, 255)
For i = 0 To (FormName.Controls.Count - 1)
Set cName = FormName.Controls(i)
If TypeOf cName Is Menu Then
GoTo SkipThisControl
End If
If (UCase(cName.Tag) = "OL") Then
ctop = cName.Top - Screen.TwipsPerPixelY
cleft = cName.Left - Screen.TwipsPerPixelX
cright = cName.Left + cName.Width + (Screen.TwipsPerPixelX * Offset)
cbottom = cName.Top + cName.Height + (Screen.TwipsPerPixelY * Offset)
FormName.Line (cleft, ctop)-(cright, ctop), drkgray
FormName.Line (cleft, ctop)-(cleft, cbottom), drkgray
FormName.Line (cleft, cbottom)-(cright, cbottom), fullwhite
FormName.Line (cright, ctop)-(cright, cbottom), fullwhite
End If
SkipThisControl:
Next i
End Sub