home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 26
/
CD_ASCQ_26_1295.iso
/
vrac
/
pzdemo.zip
/
GRADIENT.FRM
< prev
next >
Wrap
Text File
|
1995-09-04
|
7KB
|
208 lines
VERSION 2.00
Begin Form GradientFrm
Caption = "Gradients, Gradients, Gradients"
ClientHeight = 4200
ClientLeft = 4020
ClientTop = 2460
ClientWidth = 7230
ClipControls = 0 'False
Height = 4605
Icon = GRADIENT.FRX:0000
Left = 3960
LinkTopic = "Form1"
ScaleHeight = 4200
ScaleWidth = 7230
Top = 2115
Width = 7350
Begin PZLabel NoteLab
Alignment = 0 'Left Justify - TOP
BackStyle = 0 'Transparent
Caption = "Check out this new faded drop shadow!"
ForeColor = &H0000FFFF&
Height = 255
Left = 1680
TabIndex = 4
Top = 1020
Width = 3555
WordWrap = -1 'True
End
Begin PZLabel GradLab
BackColor = &H0080C0FF&
BevelInner = 1 'Inset
BevelInnerShading= 3 'Frame
BevelInnerWidth = 1
BevelOuter = 2 'Raised
BevelOuterShading= 2 'Dark
BevelOuterWidth = 3
BorderInner = 2 'Filled
BorderInnerWidth= 3
BorderOuter = 5 'Faded Shadow
BorderOuterWidth= 14
Caption = "Gradients & Drop Shadows!"
CornerBackColor = &H00C00000&
CornerSize = 4
DirectDraw = 0 'False
Font3D = 4 'Drop Right
Font3DColor = &H00808080&
Font3DSize = 4
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 19.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00FF0000&
GradientColor = &H00C0C0C0&
GradientStyle = 1 'Vertical
Height = 1155
Index = 0
Left = 630
TabIndex = 1
Top = 90
Width = 5985
End
Begin PZLabel GradLab
BackColor = &H00004000&
BevelOuter = 2 'Raised
BevelOuterShading= 1 'Light
BorderOuterColor= &H00400000&
BorderOuterWidth= 4
Caption = "These gradients are centered."
CaptionMargin = 4
CornerSize = 3
DirectDraw = 0 'False
Font3D = 2 'Block Right
Font3DColor = &H0000FFFF&
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000FF&
GradientColor = &H0000FF00&
GradientStyle = 6 'Horizontal Centered
Height = 795
Index = 1
Left = 450
Picture = GRADIENT.FRX:0302
TabIndex = 2
Top = 3060
Width = 2775
WordWrap = -1 'True
End
Begin PZLabel GradLab
BackColor = &H00C000C0&
BevelOuter = 2 'Raised
BevelOuterShading= 1 'Light
BorderOuterColor= &H00400000&
BorderOuterWidth= 4
Caption = "It's very easy (and cheap)!"
CaptionMargin = 20
CornerSize = 3
DirectDraw = 0 'False
Font3D = 2 'Block Right
Font3DColor = &H00FF0000&
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H0000FF00&
GradientColor = &H000000FF&
GradientStyle = 7 'Diagonal Centered
Height = 795
Index = 2
Left = 3930
Picture = GRADIENT.FRX:0380
TabIndex = 3
Top = 3060
Width = 2805
WordWrap = -1 'True
End
Begin PZLabel GradPan
BackColor = &H00FF0000&
BevelInnerWidth = 1
BorderInnerColor= &H000080FF&
BorderInnerWidth= 4
Caption = "Horizontal, vertical and diagonal gradient fills are now supported by Pizazz."
CaptionMargin = 10
CornerBackColor = &H00000000&
DirectDraw = 0 'False
Font3D = 2 'Block Right
Font3DColor = &H000000FF&
Font3DSize = 2
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 22.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H0000FFFF&
GradientStyle = 1 'Vertical
Height = 4215
Left = 0
TabIndex = 0
Top = 0
Width = 7245
WordWrap = -1 'True
End
End
Option Explicit
Sub Form_Resize ()
Dim i As Integer
Dim w As Long, h As Long, h1 As Long
' no point chaging anything right now
PZdemo!Timer1.Enabled = False
' make these gradient labels disappear while the background is resized
For i = 0 To 2
GradLab(i).Visible = False
' remove the old clipping region
GradLab(i).ClipCtl = 0
Next
NoteLab.Visible = False
NoteLab.ClipCtl = 0
GradPan.Move 0, 0, ScaleWidth, ScaleHeight
w = ScaleWidth * .85
h = ScaleHeight * .3
If w < 6150 Then w = 6150
If h < 980 Then h = 980
GradLab(0).Move (GradPan.Width - w) \ 2, GradLab(0).Top, w, h
h1 = GradLab(0).Height * .75
w = GradPan.Width - GradLab(1).Width * 2
h = GradPan.Height - h1 - GradLab(0).Top
GradLab(1).Move w \ 3, h, GradLab(1).Width, h1
GradLab(2).Move GradPan.Width - GradLab(2).Width - w \ 3, h, GradLab(2).Width, h1
If windowstate = 1 Then Exit Sub
DoEvents
' bring em back...
For i = 0 To 2
GradLab(i).ClipCtl = GradPan.hCtl
GradLab(i).Visible = True
Next
' let the new labels paint before moving the transparent note
DoEvents
NoteLab.Move (ScaleWidth - NoteLab.Width) \ 2, GradLab(0).Top + GradLab(0).Height - NoteLab.Height
' then clip out the note so it doesn't flash
NoteLab.ClipCtl = GradLab(0).hCtl
NoteLab.Visible = True
PZdemo!Timer1.Enabled = True
End Sub
Sub GradLab_Click (Index As Integer)
GradPan_Click
End Sub
Sub GradPan_Click ()
If PZdemo!Timer1.Enabled Then Unload Me
End Sub