home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hot Shareware 35
/
hot35.iso
/
ficheros
/
LVB
/
T2W32543.ZIP
/
_GRAD.FRM
< prev
next >
Wrap
Text File
|
1998-05-21
|
4KB
|
163 lines
VERSION 5.00
Begin VB.Form frmGradient
BorderStyle = 4 'Fixed ToolWindow
Caption = "Gradient"
ClientHeight = 4290
ClientLeft = 1890
ClientTop = 3270
ClientWidth = 6600
MaxButton = 0 'False
MDIChild = -1 'True
PaletteMode = 1 'UseZOrder
ScaleHeight = 4290
ScaleWidth = 6600
ShowInTaskbar = 0 'False
Begin VB.Frame Frame1
Height = 570
Left = 0
TabIndex = 0
Top = -90
Width = 6585
Begin VB.CommandButton cmdNP
Caption = ">"
Height = 285
Index = 1
Left = 6210
TabIndex = 5
Top = 195
Width = 285
End
Begin VB.CommandButton cmdNP
Caption = "<"
Height = 285
Index = 0
Left = 5310
TabIndex = 4
Top = 195
Width = 285
End
Begin VB.CommandButton Command1
Caption = "&Go"
Default = -1 'True
Height = 285
Left = 5670
TabIndex = 3
Top = 195
Width = 465
End
Begin VB.ComboBox cmb_Function
Height = 315
Left = 1365
TabIndex = 1
Top = 180
Width = 3855
End
Begin VB.Label Label2
Caption = "&Select a function"
Height = 255
Left = 90
TabIndex = 2
Top = 210
Width = 1275
End
End
End
Attribute VB_Name = "frmGradient"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Option Base 1
Private Const Iteration = 250
Dim IsLoaded As Integer
Dim TimerStartOk As Integer
Dim TimerCloseOk As Integer
Dim TimerHandle As Integer
Dim TimerValue As Long
Private Sub cmdNP_Click(Index As Integer)
Call sub_NextPrev(cmb_Function, Index)
End Sub
Private Sub cmb_Function_Click()
If (IsLoaded = False) Then Exit Sub
Call cDisableFI(mdiT2W.Picture1)
DoEvents
Select Case cmb_Function.ListIndex
Case 0 To 7
Refresh
Case 8
Call TestPsychedelic
Case Else
End Select
DoEvents
Call cEnableFI(mdiT2W.Picture1)
End Sub
Private Sub Form_Activate()
mdiT2W.Label2.Caption = cInsertBlocks(mdiT2W.Label2.Tag, "" & Iteration)
End Sub
Private Sub Form_Load()
IsLoaded = False
Show
Call sub_Load_Combo(cmb_Function, T2WDirInst + "_grad.t2w")
IsLoaded = True
End Sub
Private Sub Form_Paint()
Dim OldScaleMode As Integer
OldScaleMode = Me.ScaleMode
Me.ScaleMode = 3
cGradient Me.hDC, 0, 0, Me.ScaleWidth, Me.ScaleHeight, cmb_Function.ListIndex + 1, 0, vbBlue
'cTitleGradient Me.hWnd, Me.Icon, cmb_Function.ListIndex + 1, 0, vbGreen
Me.ScaleMode = OldScaleMode
End Sub
Private Sub Command1_Click()
Call cmb_Function_Click
End Sub
Private Sub TestPsychedelic()
Dim OldScaleMode As Integer
OldScaleMode = Me.ScaleMode
Me.ScaleMode = 3
Dim t As Single
t = Timer
Do
cGradient Me.hDC, 0, 0, Me.ScaleWidth, Me.ScaleHeight, Int((8 * Rnd) + 1), 0, Int((&HFFFFFF * Rnd) + 1)
DoEvents
Loop Until ((Timer - t) > 4)
Me.ScaleMode = OldScaleMode
End Sub