home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmGRAPHBitmap
- Caption = "Chart's Bitmap "
- ClientHeight = 5865
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 8700
- LinkTopic = "Form4"
- ScaleHeight = 5865
- ScaleWidth = 8700
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "C L O S E"
- BeginProperty Font
- Name = "Verdana"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 6735
- TabIndex = 1
- Top = 5280
- Width = 1875
- End
- Begin VB.PictureBox Picture1
- AutoSize = -1 'True
- Height = 4965
- Left = 105
- OLEDragMode = 1 'Automatic
- ScaleHeight = 4905
- ScaleWidth = 8415
- TabIndex = 0
- Top = 135
- Width = 8475
- End
- Attribute VB_Name = "frmGRAPHBitmap"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- ' ******************************
- ' ******************************
- ' ** MASTERING VB6 **
- ' ** by Evangelos Petroutos **
- ' ** SYBEX, 1998 **
- ' ******************************
- ' ******************************
- Private Sub Command1_Click()
- Me.Hide
- End Sub
- Private Sub Form_Activate()
- ' When this Form is activates (which is after the Form has been loaded),
- ' it's resized according to the size of the PictureBox it contains
- ' The PictureBox control is set to the size of the pasted bitmap becuase
- ' its AutoSize property is set to True
- Picture1.Enabled = False
- Command1.Enabled = False
- Me.Width = 3 * Picture1.Left + Picture1.Width
- Me.Height = Picture1.Top + Picture1.Height + Command1.Height + 40 * Screen.TwipsPerPixelY
- Command1.Top = Picture1.Top + Picture1.Height + 10 * Screen.TwipsPerPixelY
- Command1.Left = Picture1.Left + Picture1.Width - Command1.Width
- Picture1.Enabled = True
- Command1.Enabled = True
- End Sub
-