home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{DAD854C5-8AD6-11D1-A5A4-8EFA282E3015}#4.0#0"; "SScontrol.ocx"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3780
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 8115
- LinkTopic = "Form1"
- ScaleHeight = 3780
- ScaleWidth = 8115
- StartUpPosition = 3 'Windows Default
- WindowState = 2 'Maximized
- Begin VB.CommandButton cmdMyFillin2
- Caption = "Fillin 2"
- Height = 375
- Left = 7020
- TabIndex = 5
- Top = 45
- Width = 1680
- End
- Begin VB.CommandButton cmdMyFillin1
- Caption = "Fillin 1"
- Height = 375
- Left = 5265
- TabIndex = 4
- Top = 45
- Width = 1680
- End
- Begin VB.CommandButton cmdEnd
- Caption = "End"
- Height = 375
- Left = 3510
- TabIndex = 3
- Top = 45
- Width = 1680
- End
- Begin VB.CommandButton ReInit2
- Caption = "Init without Table"
- Height = 375
- Left = 1755
- TabIndex = 2
- Top = 45
- Width = 1680
- End
- Begin VB.CommandButton cmdReInit1
- Caption = "Init with Table"
- Height = 375
- Left = 0
- TabIndex = 1
- Top = 45
- Width = 1680
- End
- Begin SSdcw.SScontrol SScontrol1
- Height = 2040
- Left = 90
- TabIndex = 0
- Top = 630
- Width = 7215
- _ExtentX = 12726
- _ExtentY = 3598
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' *********************************************************************************************************************
- ' *** Set up some global constants for this page
- ' *********************************************************************************************************************
- Const useNoRows = 20 '1-base
- Const useNoCols = 11 '1-base
- Const useNoFixedRows = 1 '1-base
- Const useNoFixedCols = 3 '1-base
- Const useFontName = "Courier New" 'is constant-width
- Const useFontSize = 8
- Const useFormatString = "<Project |<Project Desc |^Catit|> Sat |> Sun |> Mon |> Tue |> Wed |> Thu |> Fri |>Totals"
- Const NoDecimalPlaces = 2
- Private Sub cmdEnd_Click()
- End
- End Sub
- Private Sub cmdReInit1_Click()
- SScontrol1.ClearSS
- SScontrol1.InitializeSS useNoRows, useNoCols, useNoFixedRows, useNoFixedCols, True, True, "###,###,###,##0.00", useFontName, useFontSize, useFormatString
- SScontrol1.AutoSizeSS
- SScontrol1.SetFocus
- End Sub
- Private Sub ReInit2_Click()
- SScontrol1.ClearSS
- SScontrol1.InitializeSS useNoRows, useNoCols, useNoFixedRows, useNoFixedCols, False, False, "###,###,###,##0.00", useFontName, useFontSize, useFormatString
- SScontrol1.AutoSizeSS
- SScontrol1.SetFocus
- End Sub
- Sub cmdMyFillin1_Click()
- Dim i, j
- For i = 0 To SScontrol1.Rows - 1
- For j = 0 To SScontrol1.Cols - 1
- SScontrol1.TextMatrix(i, j) = "aR" & i & "C" & j
- Next
- Next
- End Sub
- Private Sub cmdMyFillin2_Click()
- Dim i, j
- For i = SScontrol1.FixedRows To SScontrol1.Rows - 1 'zero-base
- For j = SScontrol1.FixedCols To SScontrol1.Cols - 1 'zero-base
- SScontrol1.TextMatrix(i, j) = "oR" & i & "C" & j
- Next
- Next
- End Sub
-