⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shadform.bas

📁 shadform.zip
💻 BAS
字号:
Option Explicit

Sub ShadeForm (Frm As Form)

' Description
'     Draws the "install-type" shaded background on a form
'
' Paramaters
'     Name                 Type     Value
'     -----------------------------------------------------------
'     Frm                  Form     The form to draw the shade on
'
' Returns
'     Nothing
'
' Last modified by Gord MacLeod 05.02.96

Dim i%
Dim NumberOfRects As Integer
Dim GradColor As Long
Dim GradValue As Integer

   Frm.ScaleMode = 3
   Frm.DrawStyle = 6
   Frm.DrawWidth = 2
   Frm.AutoRedraw = True
   
   NumberOfRects = 64
    
   For i% = 1 To 64
   
      GradValue = 255 - (i% * 4 - 1)
       
      ' Put GradValue in Red and Green for a different look
      GradColor = RGB(0, 0, GradValue)
       
      ' Draw the line
      Frm.Line (0, Frm.ScaleHeight * (i% - 1) / 64)-(Frm.ScaleWidth, Frm.ScaleHeight * i% / 64), GradColor, BF
    
   Next i%

   Frm.Refresh

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -