VERSION 5.00 Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX" Begin VB.Form Form7 BorderStyle = 4 'Fixed ToolWindow Caption = "CIPW table" ClientHeight = 7080 ClientLeft = 45 ClientTop = 285 ClientWidth = 13545 LinkTopic = "Form7" MaxButton = 0 'False MDIChild = -1 'True MinButton = 0 'False ScaleHeight = 7080 ScaleWidth = 13545 ShowInTaskbar = 0 'False Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Acmite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 28 Left = 1680 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 32 Top = 5880 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "K_Meta" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 27 Left = 240 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 31 Top = 5880 Width = 1500 End Begin VB.Frame Frame1 Caption = "CIPW norm minerals" Height = 2055 Left = 120 TabIndex = 2 Top = 4440 Width = 13335 Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Na2SiO3" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 26 Left = 11640 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 30 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Kaliophilite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 25 Left = 10200 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 29 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Ca_Orthosilicate" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 24 Left = 8760 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 28 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Leucite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 23 Left = 7320 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 27 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Nepheline" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 22 Left = 5880 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 26 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Rutile" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 21 Left = 4440 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 25 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Perovskite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 20 Left = 3000 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 24 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Olivine" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 19 Left = 1560 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 23 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Quartz" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 18 Left = 120 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 22 Top = 1080 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Wollastonite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 17 Left = 11640 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 21 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Hypersthene" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 16 Left = 10200 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 20 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Diopside" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 15 Left = 8760 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 19 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Hematite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 14 Left = 7320 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 18 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Magnetite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 13 Left = 5880 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 17 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Corundum" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 12 Left = 4440 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 16 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Anorthite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 11 Left = 3000 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 15 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Aegerine" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 10 Left = 1560 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 14 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Albite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 9 Left = 120 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 13 Top = 720 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Orthoclase" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 8 Left = 11640 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 12 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Sphene" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 7 Left = 10200 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 11 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Ilmenite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 6 Left = 8760 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 10 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Zircon" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 5 Left = 7320 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 9 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Calcite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 4 Left = 5880 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 8 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Fluorite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 3 Left = 4440 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 7 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Chromite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 2 Left = 3000 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 6 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Pyrite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 1 Left = 1560 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 5 Top = 360 Width = 1500 End Begin VB.CommandButton Command3 BackColor = &H000000FF& Caption = "Apatite" BeginProperty Font Name = "Arial" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Index = 0 Left = 120 MaskColor = &H000000FF& Style = 1 'Graphical TabIndex = 4 Top = 360 Width = 1500 End Begin VB.CommandButton Command2 Caption = "Add to data table (SpaceBar)" BeginProperty Font Name = "Arial" Size = 9 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 10200 TabIndex = 3 Top = 1560 Width = 2895 End End Begin VB.CommandButton Command1 Caption = "Close" BeginProperty Font Name = "Arial" Size = 9 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 11760 TabIndex = 1 Top = 6600 Width = 1575 End Begin MSFlexGridLib.MSFlexGrid Fl2 Height = 4215 Left = 120 TabIndex = 0 Top = 120 Width = 13335 _ExtentX = 23521 _ExtentY = 7435 _Version = 393216 FocusRect = 2 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} Name = "Arial" Size = 9 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End End Attribute VB_Name = "Form7" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Form7.Hide End Sub Private Sub Command2_Click() Dim PhCIPW(30) rrt = 0 For i = 0 To 26 If Command3(i).BackColor = QBColor(2) Then rrt = rrt + 1 PhCIPW(rrt) = Command3(i).Caption End If Next i For i = 1 To rrt For ia = 1 To 29 Fl2.Row = 0 Fl2.col = ia If Fl2.Text = PhCIPW(i) Then colww = ia namex = PhCIPW(i) GoTo poi End If Next ia poi: Numelem = Numelem + 1 Elementi(Numelem) = namex For ib = 1 To Numcamp1 Fl2.Row = ib Fl2.col = colww aaaaw = Val(Fl2.Text) DatiOrigine(ib, Numelem) = aaaaw Next ib INP.InserisciInForm13 Numelem INP.InserisciTabella Numelem Next i End Sub Private Sub Command3_Click(Index As Integer) If Command3(Index).BackColor = QBColor(12) Then Command3(Index).BackColor = QBColor(2) Exit Sub End If If Command3(Index).BackColor = QBColor(2) Then Command3(Index).BackColor = QBColor(12) Exit Sub End If Form7.Command2.SetFocus End Sub Private Sub Command3_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer) If KeyCode = 32 Then Command2_Click End If End Sub Private Sub Command3_KeyPress(Index As Integer, KeyAscii As Integer) If KeyAscii = 32 Then Command2_Click End If End Sub Private Sub Fl2_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 32 Then Command1_Click End If End Sub Private Sub Fl2_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single) If Button = 2 Then TipoCopia = "CIPW" MDIForm1.PopupMenu MDIForm1.mnuPopup1 End If End Sub Private Sub Form_Load() Form7.Fl2.Rows = Numcamp1 + 1 Form7.Fl2.ColS = 33 'ATTENZIONE 29 Form7.Fl2.ColWidth(0) = 3000 Form7.Fl2.ColAlignment(0) = 1 End Sub Private Sub Form_Terminate() Form7.Hide Exit Sub End Sub Private Sub Form_Unload(Cancel As Integer) Form7.Hide Exit Sub End Sub