home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form fGrid
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "VideoSoft Visual Array"
- ClientHeight = 5700
- ClientLeft = 1380
- ClientTop = 1395
- ClientWidth = 8550
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 6165
- Left = 1290
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 5700
- ScaleWidth = 8550
- Top = 1020
- Width = 8730
- Begin CommandButton Command1
- BackColor = &H00C0C0C0&
- Caption = "FillStyle"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 330
- Index = 0
- Left = 180
- TabIndex = 9
- Top = 5265
- Width = 1155
- End
- Begin Frame Frame2
- BackColor = &H00C0C0C0&
- Caption = "Array"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FF0000&
- Height = 1620
- Left = 195
- TabIndex = 22
- Top = 180
- Width = 4485
- Begin CheckBox eGridLines
- BackColor = &H00C0C0C0&
- Caption = "Grid Lines"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 270
- Left = 3015
- TabIndex = 3
- Top = 495
- Value = 1 'Checked
- Width = 1095
- End
- Begin ComboBox cmbEditControl
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Left = 1530
- Style = 2 'Dropdown List
- TabIndex = 2
- Top = 495
- Width = 1365
- End
- Begin CheckBox eBlob
- BackColor = &H00C0C0C0&
- Caption = "Special effect"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 240
- Left = 3015
- TabIndex = 1
- Top = 225
- Width = 1305
- End
- Begin HScrollBar zoom
- Height = 240
- Left = 90
- Max = 36
- Min = 3
- TabIndex = 0
- TabStop = 0 'False
- Top = 525
- Value = 6
- Width = 1350
- End
- Begin Label ltool
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FF0000&
- Height = 195
- Index = 1
- Left = 1095
- TabIndex = 26
- Top = 1305
- Width = 45
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Selection:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 7
- Left = 135
- TabIndex = 25
- Top = 1305
- Width = 705
- End
- Begin Label ltool
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FF0000&
- Height = 195
- Index = 0
- Left = 1080
- TabIndex = 10
- Top = 1095
- Width = 45
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Mouse Over:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 5
- Left = 135
- TabIndex = 15
- Top = 1080
- Width = 915
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Edit as"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 6
- Left = 1530
- TabIndex = 24
- Top = 270
- Width = 480
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Zoom"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 1
- Left = 105
- TabIndex = 23
- Top = 300
- Width = 405
- End
- End
- Begin Frame Frame1
- BackColor = &H00C0C0C0&
- Caption = "Range or Cell Format"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FF0000&
- Height = 1650
- Left = 4965
- TabIndex = 19
- Top = 150
- Width = 3405
- Begin CommandButton eFontBigger
- BackColor = &H00C0C0C0&
- Caption = "+"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 210
- Left = 1845
- TabIndex = 7
- Top = 1215
- Width = 330
- End
- Begin CommandButton eFontSmaller
- BackColor = &H00C0C0C0&
- Caption = "-"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 210
- Left = 2250
- TabIndex = 8
- Top = 1215
- Width = 330
- End
- Begin ComboBox cmbCellAlign
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 300
- Left = 1845
- Style = 2 'Dropdown List
- TabIndex = 5
- Top = 585
- Width = 1350
- End
- Begin ComboBox FontList
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 300
- Left = 1845
- Style = 2 'Dropdown List
- TabIndex = 6
- TabStop = 0 'False
- Top = 855
- Width = 1350
- End
- Begin ComboBox ColorList
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 300
- Left = 1845
- Style = 2 'Dropdown List
- TabIndex = 4
- TabStop = 0 'False
- Top = 315
- Width = 1350
- End
- Begin CheckBox eItalic
- BackColor = &H00C0C0C0&
- Caption = "&Italic"
- FontBold = 0 'False
- FontItalic = -1 'True
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 300
- Left = 195
- TabIndex = 21
- Top = 585
- Width = 735
- End
- Begin CheckBox eBold
- BackColor = &H00C0C0C0&
- Caption = "Bold"
- ForeColor = &H00000000&
- Height = 300
- Left = 195
- TabIndex = 20
- Top = 315
- Width = 750
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "FontSize"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 2
- Left = 1095
- TabIndex = 18
- Top = 1215
- Width = 615
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Align"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 0
- Left = 1455
- TabIndex = 14
- Top = 630
- Width = 345
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Color"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 4
- Left = 1410
- TabIndex = 17
- Top = 360
- Width = 360
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "FontName"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 195
- Index = 3
- Left = 1080
- TabIndex = 16
- Top = 900
- Width = 735
- End
- End
- Begin vsFlexArray vsFlexArray
- BackColor = &H00FFFFFF&
- BackColorFixed = &H00C0C0C0&
- Cols = 22
- FillStyle = 1 'Repeat
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- ForeColorFixed = &H00808080&
- GridColorFixed = &H00808080&
- Height = 3300
- Left = 195
- Rows = 100
- TabIndex = 11
- TabStop = 0 'False
- TextStyleFixed = 1 'Raised
- Top = 1905
- Width = 8160
- Begin TextBox Text
- BorderStyle = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 240
- Left = 195
- TabIndex = 13
- TabStop = 0 'False
- Top = 1095
- Visible = 0 'False
- Width = 810
- End
- Begin ComboBox List
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 300
- Left = 195
- Style = 2 'Dropdown List
- TabIndex = 12
- TabStop = 0 'False
- Top = 1605
- Visible = 0 'False
- Width = 750
- End
- Begin Shape Blob
- BackColor = &H000000FF&
- BorderColor = &H00000080&
- BorderStyle = 2 'Dash
- BorderWidth = 4
- FillColor = &H000000FF&
- Height = 315
- Left = 210
- Shape = 2 'Oval
- Top = 480
- Visible = 0 'False
- Width = 555
- End
- Begin Image img
- Height = 480
- Left = 210
- Picture = GRDEMO.FRX:0000
- Top = 75
- Visible = 0 'False
- Width = 480
- End
- End
- Option Explicit
- Sub cmbCellAlign_Click ()
- Select Case cmbCellAlign.ListIndex
- Case 0: vsFlexArray.CellAlignment = 1
- Case 1: vsFlexArray.CellAlignment = 4
- Case 2: vsFlexArray.CellAlignment = 7
- End Select
- End Sub
- Sub ColorList_Click ()
- If Not vsFlexArray.Visible Then Exit Sub
- Select Case ColorList.ListIndex
- Case 0 ' (default)
- vsFlexArray.CellBackColor = 0
- vsFlexArray.CellForeColor = 0
- Case 1 ' USA/France
- vsFlexArray.CellBackColor = &HC00000
- vsFlexArray.CellForeColor = &HC0&
- Case 2 ' Germany
- vsFlexArray.CellBackColor = &HFFFF&
- vsFlexArray.CellForeColor = 1
- Case 3 ' Mexico/Italy
- vsFlexArray.CellBackColor = &H8000&
- vsFlexArray.CellForeColor = &HFF&
- Case 4 ' Canada/Japan
- vsFlexArray.CellBackColor = &HFF&
- vsFlexArray.CellForeColor = &HFFFFFF
- Case 5 ' Ireland
- vsFlexArray.CellBackColor = &H8000&
- vsFlexArray.CellForeColor = &HFFFFFF
- Case 6 ' Sweden
- vsFlexArray.CellBackColor = &HFF0000
- vsFlexArray.CellForeColor = &HFFFF&
- Case 7 ' Argentina
- vsFlexArray.CellBackColor = &H808000
- vsFlexArray.CellForeColor = &HFFFFFF
- Case 8 ' Brazil
- vsFlexArray.CellBackColor = &HFFFF&
- vsFlexArray.CellForeColor = &H8000&
- Case 9 ' Japan
- vsFlexArray.CellBackColor = &HFFFFFF
- vsFlexArray.CellForeColor = &HFF&
- End Select
- markrow
- If vsFlexArray.Visible Then vsFlexArray.SetFocus
- End Sub
- Sub Command1_Click (Index%)
- Dim cr$
- cr = Chr$(13)
- Select Case Index
- Case 0: MsgBox "The repeat Fillstyle lets you create multiple cells at once." & cr & cr & "Select a cell range, type a string, and press Enter"
- End Select
- End Sub
- Sub DoInitializeCombos ()
- '-------------------------------------------------
- ' initialize zoom scroller
- zoom = vsFlexArray.FontSize
- '-------------------------------------------------
- ' initialize font list
- FontList.AddItem "(default)"
- FontList.AddItem "Arial"
- FontList.AddItem "Courier New"
- FontList.AddItem "Times New Roman"
- FontList.AddItem "Symbol"
- FontList.AddItem "System"
- FontList.AddItem "Wingdings"
- FontList.ListIndex = 0
- '-------------------------------------------------
- ' initialize color list
- ColorList.AddItem "(default)"
- ColorList.AddItem "USA/France"
- ColorList.AddItem "Germany"
- ColorList.AddItem "Mexico/Italy"
- ColorList.AddItem "Canada"
- ColorList.AddItem "Ireland"
- ColorList.AddItem "Sweden"
- ColorList.AddItem "Argentina"
- ColorList.AddItem "Brazil"
- ColorList.AddItem "Japan"
- ColorList.ListIndex = 0
- '-------------------------------------------------
- ' initialize pick list
- list.AddItem "Spaghetti"
- list.AddItem "Fetuccine"
- list.AddItem "Vermicelli"
- list.AddItem "Capellini"
- list.AddItem "Linguine"
- list.AddItem "Rotelli"
- list.AddItem "Penne"
- list.AddItem "Veadelli"
- '-------------------------------------------------
- ' initialize CellAlign
- cmbCellAlign.AddItem "Left"
- cmbCellAlign.AddItem "Center"
- cmbCellAlign.AddItem "Right"
- cmbCellAlign.ListIndex = 0
- '-------------------------------------------------
- ' initialize Edit control
- cmbEditControl.AddItem "Text box"
- cmbEditControl.AddItem "Dropdown list"
- cmbEditControl.AddItem "Don't Edit"
- cmbEditControl.ListIndex = 0
- End Sub
- Sub ebold_Click ()
- vsFlexArray.CellFontBold = Not vsFlexArray.CellFontBold
- End Sub
- Sub EditKeyCode (g As Control, c As Control, KeyCode%, Shift%)
- ' standard edit control processing
- Select Case KeyCode
- Case 27 ' esc
- c.Visible = False
- g.SetFocus
- Case 13 ' enter
- g.SetFocus
- Case 40 ' down
- g.SetFocus
- DoEvents
- If g.Row < g.Rows - 1 Then
- g.Row = g.Row + 1
- End If
- Case 38 ' up
- g.SetFocus
- DoEvents
- If g.Row > g.FixedRows Then
- g.Row = g.Row - 1
- End If
- End Select
- End Sub
- Sub eFontBigger_Click ()
- Dim i%
- i = vsFlexArray.CellFontSize
- If i = 0 Then i = vsFlexArray.FontSize
- i = i + 2
- If i <= 36 Then
- vsFlexArray.CellFontSize = i
- End If
- End Sub
- Sub eFontSmaller_Click ()
- Dim i%
- i = vsFlexArray.CellFontSize
- If i = 0 Then i = vsFlexArray.FontSize
- i = i - 2
- If i >= 3 Then
- vsFlexArray.CellFontSize = i
- End If
- End Sub
- Sub eGridLines_Click ()
- vsFlexArray.GridLines = eGridLines
- End Sub
- Sub eItalic_Click ()
- vsFlexArray.CellFontItalic = Not vsFlexArray.CellFontItalic
- End Sub
- Sub FontList_Click ()
- If Not vsFlexArray.Visible Then Exit Sub
- If FontList.ListIndex = 0 Then
- vsFlexArray.CellFontName = ""
- Else
- vsFlexArray.CellFontName = FontList
- End If
- markrow
- If vsFlexArray.Visible Then vsFlexArray.SetFocus
- End Sub
- Sub Form_DblClick ()
- Dim s$
- Debug.Print vsFlexArray.Clip
- s = "1,1" + Chr(9) + "1,2" + Chr(9) + "1,3" + Chr(13)
- s = s + "2,1" + Chr(9) + "2,2" + Chr(9) + "2,3" + Chr(13)
- s = s + "3,1" + Chr(9) + "3,2" + Chr(9) + "3,3"
- vsFlexArray.Clip = s
- End Sub
- Sub Form_Load ()
- DoGridTitles vsFlexArray ' Place cell numbers on the fix columns
- DoInitializeCombos ' Add options
- DoGetData ' Retrieve data
- DoFillArray vsFlexArray, 2, 2 ' Place data on vsFlexArray
- End Sub
- Sub GridEdit (g As Control, c As Control, keyascii As Integer)
- '--------------------------------------------------
- ' prepare the control
- c.FontName = g.FontName
- If TypeOf c Is TextBox Then
- c.FontSize = g.FontSize
- Select Case keyascii
- Case 0 To 32
- c = g
- c.SelStart = 1000
- Case Else
- c = Chr(keyascii)
- c.SelStart = 1
- End Select
- Else
- c.FontSize = g.FontSize * .75
- End If
- c.FontName = g.FontName
- '--------------------------------------------------
- ' show it at the right place
- If g.FillStyle = 0 Then
- If g.Row <> g.RowSel Or g.Col <> g.ColSel Then
- g.RowSel = g.Row
- g.ColSel = g.Col
- End If
- End If
- ' and let it rip
- On Error Resume Next
- c.Move g.CellLeft, g.CellTop
- c.Width = g.CellWidth
- c.Height = g.CellHeight
- c.Visible = True
- c.SetFocus
- On Error GoTo 0
- End Sub
- Sub list_KeyDown (KeyCode As Integer, Shift As Integer)
- ' standard edit control processing
- EditKeyCode vsFlexArray, list, KeyCode, Shift
- End Sub
- Sub markrow ()
- Dim i%, r%, c%, rs%, cs%, st%
- r = vsFlexArray.Row
- rs = vsFlexArray.RowSel
- c = vsFlexArray.Col
- cs = vsFlexArray.ColSel
- If r <= rs Then st = 1 Else st = -1
- vsFlexArray.Col = 0
- For i = r To rs Step st
- vsFlexArray.Row = i
- vsFlexArray.CellPicture = img
- Next
- vsFlexArray.Row = r
- vsFlexArray.Col = c
- vsFlexArray.RowSel = rs
- vsFlexArray.ColSel = cs
- End Sub
- Sub Text_KeyDown (KeyCode As Integer, Shift As Integer)
- ' standard edit control processing
- EditKeyCode vsFlexArray, text, KeyCode, Shift
- End Sub
- Sub Text_KeyPress (keyascii As Integer)
- If keyascii = 13 Then keyascii = 0
- End Sub
- Sub vsFlexArray_DblClick ()
- Select Case cmbEditControl.ListIndex
- Case 0: GridEdit vsFlexArray, text, 32
- Case 1: GridEdit vsFlexArray, list, 32
- End Select
- End Sub
- Sub vsFlexArray_EnterCell ()
- Dim i%
- ' show a blob blinking as we move (very annoying)
- If eBlob = 0 Then Exit Sub
- For i = -vsFlexArray.CellHeight / 2 To vsFlexArray.CellHeight / 2 Step 30
- blob.Visible = False
- blob.Move vsFlexArray.CellLeft - i, vsFlexArray.CellTop - i
- blob.Width = vsFlexArray.CellWidth + 2 * i
- blob.Height = vsFlexArray.CellHeight + 2 * i + 1
- blob.Visible = True
- blob.Refresh
- Next
- blob.Visible = False
- End Sub
- Sub vsFlexArray_GotFocus ()
- '--------------------------------------------------
- ' if our edit box is up, copy its contents
- If text.Visible Then
- vsFlexArray = text
- text.Visible = False
- '--------------------------------------------------
- ' if our list is up, copy its contents
- ElseIf list.Visible Then
- vsFlexArray = list
- list.Visible = False
- End If
- End Sub
- Sub vsFlexArray_KeyPress (keyascii As Integer)
- ' start editing
- Select Case cmbEditControl.ListIndex
- Case 0: GridEdit vsFlexArray, text, keyascii
- Case 1: GridEdit vsFlexArray, list, keyascii
- End Select
- End Sub
- Sub vsFlexArray_LeaveCell ()
- '--------------------------------------------------
- ' if our edit box is up, copy its contents
- If text.Visible Then
- vsFlexArray = text
- text.Visible = False
- End If
- '--------------------------------------------------
- ' if our list is up, copy its contents
- If list.Visible Then
- vsFlexArray = list
- list.Visible = False
- End If
- End Sub
- Sub vsFlexArray_MouseDown (button As Integer, Shift As Integer, X As Single, Y As Single)
- ' change mouse pointer to show we're selecting
- If button = 1 Then vsFlexArray.MousePointer = 10
- End Sub
- Sub vsFlexArray_MouseMove (button As Integer, Shift As Integer, X As Single, Y As Single)
- Static r%, c%
- ' user feedback as we move the mouse
- If r = vsFlexArray.MouseRow And c = vsFlexArray.MouseCol Then Exit Sub
- r = vsFlexArray.MouseRow
- c = vsFlexArray.MouseCol
- If r = 0 And c > 0 Then lTool(0) = "Column Header " & Format(c)
- If c = 0 And r > 0 Then lTool(0) = "Row Header " & Format(r)
- If c = 0 And r = 0 Then lTool(0) = "Origin"
- If r > 0 And c > 0 Then lTool(0) = "Row: " & Format(r) & " Column: " & Format(c)
- End Sub
- Sub vsFlexArray_MouseUp (button As Integer, Shift As Integer, X As Single, Y As Single)
- ' restore mouse pointer
- vsFlexArray.MousePointer = 0
- End Sub
- Sub vsFlexArray_SelChange ()
- Dim s$
- ' user feedback
- s = "FROM row: " + Format(vsFlexArray.Row) + " col: " + Format(vsFlexArray.Col)
- s = s + " TO row: " + Format(vsFlexArray.RowSel) + " col: " + Format(vsFlexArray.ColSel)
- lTool(1) = s
- End Sub
- Sub zoom_Change ()
- ' zoom in and out by changing font size
- If vsFlexArray.Visible Then vsFlexArray.SetFocus
- vsFlexArray.FontSize = zoom
- vsFlexArray.FontName = "Arial"
- If vsFlexArray.Visible Then vsFlexArray.SetFocus
- End Sub
-