home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / DATABASE.ZIP / VB6DB.ctl (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-05-23  |  41.8 KB  |  1,213 lines

  1. VERSION 5.00
  2. Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
  3. Object = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "fm20.dll"
  4. Object = "{00025600-0000-0000-C000-000000000046}#4.6#0"; "crystl32.ocx"
  5. Object = "{D38910A8-E766-11D0-B2AE-444553540000}#1.0#0"; "OACTools.ocx"
  6. Begin VB.UserControl VB6DB 
  7.    Alignable       =   -1  'True
  8.    AutoRedraw      =   -1  'True
  9.    BackColor       =   &H00C0C0C0&
  10.    BackStyle       =   0  'Transparent
  11.    ClientHeight    =   4380
  12.    ClientLeft      =   0
  13.    ClientTop       =   0
  14.    ClientWidth     =   7620
  15.    ControlContainer=   -1  'True
  16.    PropertyPages   =   "VB6DB.ctx":0000
  17.    ScaleHeight     =   4380
  18.    ScaleWidth      =   7620
  19.    ToolboxBitmap   =   "VB6DB.ctx":000E
  20.    Begin VB.Data DBCR 
  21.       Caption         =   "Data1"
  22.       Connect         =   "Access"
  23.       DatabaseName    =   ""
  24.       DefaultCursorType=   0  'DefaultCursor
  25.       DefaultType     =   2  'UseODBC
  26.       Exclusive       =   0   'False
  27.       Height          =   345
  28.       Left            =   780
  29.       Options         =   0
  30.       ReadOnly        =   0   'False
  31.       RecordsetType   =   1  'Dynaset
  32.       RecordSource    =   ""
  33.       Top             =   3480
  34.       Visible         =   0   'False
  35.       Width           =   1275
  36.    End
  37.    Begin Crystal.CrystalReport CR 
  38.       Bindings        =   "VB6DB.ctx":0320
  39.       Left            =   2160
  40.       Top             =   3360
  41.       _ExtentX        =   741
  42.       _ExtentY        =   741
  43.       _Version        =   262150
  44.       ReportSource    =   3
  45.    End
  46.    Begin Threed.SSPanel SSPanel2 
  47.       Align           =   1  'Align Top
  48.       Height          =   1095
  49.       Left            =   0
  50.       TabIndex        =   2
  51.       Top             =   0
  52.       Visible         =   0   'False
  53.       Width           =   7620
  54.       _Version        =   65536
  55.       _ExtentX        =   13441
  56.       _ExtentY        =   1931
  57.       _StockProps     =   15
  58.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  59.          Name            =   "MS Sans Serif"
  60.          Size            =   8.25
  61.          Charset         =   0
  62.          Weight          =   400
  63.          Underline       =   0   'False
  64.          Italic          =   0   'False
  65.          Strikethrough   =   0   'False
  66.       EndProperty
  67.       BorderWidth     =   1
  68.       BevelInner      =   1
  69.       Begin VB6database.axButton sdButton2 
  70.          Height          =   195
  71.          Left            =   7380
  72.          TabIndex        =   31
  73.          ToolTipText     =   "Chiudi e ripristina il database"
  74.          Top             =   60
  75.          Width           =   195
  76.          _ExtentX        =   344
  77.          _ExtentY        =   344
  78.          BackColor       =   12632256
  79.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  80.             Name            =   "MS Sans Serif"
  81.             Size            =   8.25
  82.             Charset         =   0
  83.             Weight          =   400
  84.             Underline       =   0   'False
  85.             Italic          =   0   'False
  86.             Strikethrough   =   0   'False
  87.          EndProperty
  88.          Picture         =   "VB6DB.ctx":0333
  89.          MaskColor       =   -2147483633
  90.       End
  91.       Begin VB.OptionButton Option2 
  92.          Appearance      =   0  'Flat
  93.          BackColor       =   &H00C0C0C0&
  94.          Caption         =   "decrescente"
  95.          ForeColor       =   &H00000000&
  96.          Height          =   195
  97.          Left            =   4440
  98.          MouseIcon       =   "VB6DB.ctx":045F
  99.          MousePointer    =   99  'Custom
  100.          TabIndex        =   13
  101.          TabStop         =   0   'False
  102.          Top             =   600
  103.          Visible         =   0   'False
  104.          Width           =   1335
  105.       End
  106.       Begin VB.OptionButton Option1 
  107.          Appearance      =   0  'Flat
  108.          BackColor       =   &H00C0C0C0&
  109.          Caption         =   "crescente"
  110.          ForeColor       =   &H00000000&
  111.          Height          =   195
  112.          Left            =   3060
  113.          MouseIcon       =   "VB6DB.ctx":05B1
  114.          MousePointer    =   99  'Custom
  115.          TabIndex        =   12
  116.          TabStop         =   0   'False
  117.          Top             =   600
  118.          Visible         =   0   'False
  119.          Width           =   1035
  120.       End
  121.       Begin VB.ListBox List1 
  122.          Appearance      =   0  'Flat
  123.          BackColor       =   &H00C0FFFF&
  124.          Columns         =   5
  125.          ForeColor       =   &H00FF0000&
  126.          Height          =   615
  127.          Left            =   4800
  128.          MouseIcon       =   "VB6DB.ctx":0703
  129.          MousePointer    =   99  'Custom
  130.          TabIndex        =   10
  131.          TabStop         =   0   'False
  132.          Top             =   300
  133.          Visible         =   0   'False
  134.          Width           =   2715
  135.       End
  136.       Begin VB.TextBox Text1 
  137.          BackColor       =   &H00C0FFFF&
  138.          ForeColor       =   &H00FF0000&
  139.          Height          =   315
  140.          Left            =   3060
  141.          TabIndex        =   7
  142.          TabStop         =   0   'False
  143.          Top             =   540
  144.          Visible         =   0   'False
  145.          Width           =   1635
  146.       End
  147.       Begin VB6database.axButton sdButton3 
  148.          Height          =   195
  149.          Left            =   7140
  150.          TabIndex        =   32
  151.          ToolTipText     =   "Chiudi e accetta la selezione"
  152.          Top             =   60
  153.          Width           =   195
  154.          _ExtentX        =   344
  155.          _ExtentY        =   344
  156.          BackColor       =   12632256
  157.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  158.             Name            =   "MS Sans Serif"
  159.             Size            =   8.25
  160.             Charset         =   0
  161.             Weight          =   400
  162.             Underline       =   0   'False
  163.             Italic          =   0   'False
  164.             Strikethrough   =   0   'False
  165.          EndProperty
  166.          Picture         =   "VB6DB.ctx":0855
  167.          MaskColor       =   -2147483633
  168.       End
  169.       Begin VB.Label Label7 
  170.          AutoSize        =   -1  'True
  171.          BackStyle       =   0  'Transparent
  172.          Caption         =   "in senso...."
  173.          Height          =   195
  174.          Left            =   3060
  175.          TabIndex        =   14
  176.          Top             =   240
  177.          Visible         =   0   'False
  178.          Width           =   765
  179.       End
  180.       Begin VB.Label Label6 
  181.          AutoSize        =   -1  'True
  182.          BackStyle       =   0  'Transparent
  183.          Caption         =   "secondo la voce"
  184.          Height          =   195
  185.          Left            =   1380
  186.          TabIndex        =   11
  187.          Top             =   240
  188.          Visible         =   0   'False
  189.          Width           =   1185
  190.       End
  191.       Begin VB.Label Label5 
  192.          AutoSize        =   -1  'True
  193.          BackStyle       =   0  'Transparent
  194.          Caption         =   "Risultati ricerca..."
  195.          Height          =   195
  196.          Left            =   4860
  197.          TabIndex        =   9
  198.          Top             =   60
  199.          Visible         =   0   'False
  200.          Width           =   1215
  201.       End
  202.       Begin VB.Label Label4 
  203.          AutoSize        =   -1  'True
  204.          BackStyle       =   0  'Transparent
  205.          Caption         =   "il testo...."
  206.          Height          =   195
  207.          Left            =   3060
  208.          TabIndex        =   8
  209.          Top             =   240
  210.          Visible         =   0   'False
  211.          Width           =   630
  212.       End
  213.       Begin VB.Label Label3 
  214.          AutoSize        =   -1  'True
  215.          BackStyle       =   0  'Transparent
  216.          Caption         =   "nella voce"
  217.          Height          =   195
  218.          Left            =   1380
  219.          TabIndex        =   6
  220.          Top             =   240
  221.          Visible         =   0   'False
  222.          Width           =   735
  223.       End
  224.       Begin MSForms.ComboBox ComboBox2 
  225.          Height          =   315
  226.          Left            =   1320
  227.          TabIndex        =   5
  228.          TabStop         =   0   'False
  229.          Top             =   540
  230.          Width           =   1575
  231.          BackColor       =   12640511
  232.          ForeColor       =   0
  233.          BorderStyle     =   1
  234.          DisplayStyle    =   7
  235.          MousePointer    =   99
  236.          Size            =   "2778;556"
  237.          MatchEntry      =   1
  238.          ShowDropButtonWhen=   2
  239.          SpecialEffect   =   0
  240.          MouseIcon       =   "VB6DB.ctx":0981
  241.          FontHeight      =   165
  242.          FontCharSet     =   0
  243.          FontPitchAndFamily=   2
  244.       End
  245.       Begin VB.Label Label2 
  246.          AutoSize        =   -1  'True
  247.          BackStyle       =   0  'Transparent
  248.          Caption         =   "Funzione"
  249.          Height          =   195
  250.          Left            =   180
  251.          TabIndex        =   4
  252.          Top             =   240
  253.          Width           =   645
  254.       End
  255.       Begin MSForms.ComboBox ComboBox1 
  256.          Height          =   315
  257.          Left            =   120
  258.          TabIndex        =   3
  259.          TabStop         =   0   'False
  260.          Top             =   540
  261.          Width           =   1095
  262.          BackColor       =   12640511
  263.          ForeColor       =   0
  264.          BorderStyle     =   1
  265.          DisplayStyle    =   7
  266.          MousePointer    =   99
  267.          Size            =   "1931;556"
  268.          MatchEntry      =   1
  269.          ShowDropButtonWhen=   2
  270.          SpecialEffect   =   0
  271.          FontHeight      =   165
  272.          FontCharSet     =   0
  273.          FontPitchAndFamily=   2
  274.       End
  275.    End
  276.    Begin Threed.SSPanel SSPanel1 
  277.       Align           =   2  'Align Bottom
  278.       Height          =   495
  279.       Left            =   0
  280.       TabIndex        =   0
  281.       Top             =   3885
  282.       Width           =   7620
  283.       _Version        =   65536
  284.       _ExtentX        =   13441
  285.       _ExtentY        =   873
  286.       _StockProps     =   15
  287.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  288.          Name            =   "MS Sans Serif"
  289.          Size            =   8.25
  290.          Charset         =   0
  291.          Weight          =   400
  292.          Underline       =   0   'False
  293.          Italic          =   0   'False
  294.          Strikethrough   =   0   'False
  295.       EndProperty
  296.       BorderWidth     =   1
  297.       BevelInner      =   1
  298.       Alignment       =   6
  299.       Autosize        =   3
  300.       Begin VB6database.axButton sdButton1 
  301.          Height          =   375
  302.          Index           =   0
  303.          Left            =   180
  304.          TabIndex        =   19
  305.          ToolTipText     =   "Primo"
  306.          Top             =   60
  307.          Width           =   375
  308.          _ExtentX        =   661
  309.          _ExtentY        =   661
  310.          BackColor       =   12632256
  311.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  312.             Name            =   "MS Sans Serif"
  313.             Size            =   8.25
  314.             Charset         =   0
  315.             Weight          =   400
  316.             Underline       =   0   'False
  317.             Italic          =   0   'False
  318.             Strikethrough   =   0   'False
  319.          EndProperty
  320.          Picture         =   "VB6DB.ctx":0AE3
  321.          MaskColor       =   -2147483633
  322.          ShowFlatGrey    =   -1  'True
  323.       End
  324.       Begin VB.PictureBox Picture1 
  325.          Height          =   0
  326.          Left            =   0
  327.          ScaleHeight     =   0
  328.          ScaleWidth      =   0
  329.          TabIndex        =   20
  330.          Top             =   0
  331.          Width           =   0
  332.       End
  333.       Begin VB6database.axButton sdButton1 
  334.          Height          =   375
  335.          Index           =   1
  336.          Left            =   660
  337.          TabIndex        =   21
  338.          ToolTipText     =   "Indietro"
  339.          Top             =   60
  340.          Width           =   375
  341.          _ExtentX        =   661
  342.          _ExtentY        =   661
  343.          BackColor       =   12632256
  344.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  345.             Name            =   "MS Sans Serif"
  346.             Size            =   8.25
  347.             Charset         =   0
  348.             Weight          =   400
  349.             Underline       =   0   'False
  350.             Italic          =   0   'False
  351.             Strikethrough   =   0   'False
  352.          EndProperty
  353.          Picture         =   "VB6DB.ctx":0BF5
  354.          MaskColor       =   -2147483633
  355.          ShowFlatGrey    =   -1  'True
  356.       End
  357.       Begin VB6database.axButton sdButton1 
  358.          Height          =   375
  359.          Index           =   2
  360.          Left            =   1140
  361.          TabIndex        =   22
  362.          ToolTipText     =   "Avanti"
  363.          Top             =   60
  364.          Width           =   375
  365.          _ExtentX        =   661
  366.          _ExtentY        =   661
  367.          BackColor       =   12632256
  368.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  369.             Name            =   "MS Sans Serif"
  370.             Size            =   8.25
  371.             Charset         =   0
  372.             Weight          =   400
  373.             Underline       =   0   'False
  374.             Italic          =   0   'False
  375.             Strikethrough   =   0   'False
  376.          EndProperty
  377.          Picture         =   "VB6DB.ctx":0D07
  378.          MaskColor       =   -2147483633
  379.          ShowFlatGrey    =   -1  'True
  380.       End
  381.       Begin VB6database.axButton sdButton1 
  382.          Height          =   375
  383.          Index           =   3
  384.          Left            =   1620
  385.          TabIndex        =   23
  386.          ToolTipText     =   "Ultimo"
  387.          Top             =   60
  388.          Width           =   375
  389.          _ExtentX        =   661
  390.          _ExtentY        =   661
  391.          BackColor       =   12632256
  392.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  393.             Name            =   "MS Sans Serif"
  394.             Size            =   8.25
  395.             Charset         =   0
  396.             Weight          =   400
  397.             Underline       =   0   'False
  398.             Italic          =   0   'False
  399.             Strikethrough   =   0   'False
  400.          EndProperty
  401.          Picture         =   "VB6DB.ctx":0E19
  402.          MaskColor       =   -2147483633
  403.          ShowFlatGrey    =   -1  'True
  404.       End
  405.       Begin VB6database.axButton sdButton1 
  406.          Height          =   375
  407.          Index           =   4
  408.          Left            =   5160
  409.          TabIndex        =   24
  410.          ToolTipText     =   "Cerca,ordina,stampa..."
  411.          Top             =   60
  412.          Width           =   375
  413.          _ExtentX        =   661
  414.          _ExtentY        =   661
  415.          BackColor       =   12632256
  416.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  417.             Name            =   "MS Sans Serif"
  418.             Size            =   8.25
  419.             Charset         =   0
  420.             Weight          =   400
  421.             Underline       =   0   'False
  422.             Italic          =   0   'False
  423.             Strikethrough   =   0   'False
  424.          EndProperty
  425.          Picture         =   "VB6DB.ctx":0F2B
  426.          MaskColor       =   -2147483633
  427.          ShowFlatGrey    =   -1  'True
  428.       End
  429.       Begin VB6database.axButton sdButton1 
  430.          Height          =   375
  431.          Index           =   5
  432.          Left            =   5640
  433.          TabIndex        =   25
  434.          Top             =   60
  435.          Visible         =   0   'False
  436.          Width           =   75
  437.          _ExtentX        =   661
  438.          _ExtentY        =   661
  439.          BackColor       =   12632256
  440.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  441.             Name            =   "MS Sans Serif"
  442.             Size            =   8.25
  443.             Charset         =   0
  444.             Weight          =   400
  445.             Underline       =   0   'False
  446.             Italic          =   0   'False
  447.             Strikethrough   =   0   'False
  448.          EndProperty
  449.          Picture         =   "VB6DB.ctx":103D
  450.          MaskColor       =   -2147483633
  451.          ShowFlatGrey    =   -1  'True
  452.       End
  453.       Begin VB6database.axButton sdButton1 
  454.          Height          =   375
  455.          Index           =   6
  456.          Left            =   2340
  457.          TabIndex        =   26
  458.          ToolTipText     =   "Aggiungi"
  459.          Top             =   60
  460.          Width           =   375
  461.          _ExtentX        =   661
  462.          _ExtentY        =   661
  463.          BackColor       =   12632256
  464.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  465.             Name            =   "MS Sans Serif"
  466.             Size            =   8.25
  467.             Charset         =   0
  468.             Weight          =   400
  469.             Underline       =   0   'False
  470.             Italic          =   0   'False
  471.             Strikethrough   =   0   'False
  472.          EndProperty
  473.          Picture         =   "VB6DB.ctx":114F
  474.          MaskColor       =   -2147483633
  475.          ShowFlatGrey    =   -1  'True
  476.       End
  477.       Begin VB6database.axButton sdButton1 
  478.          Height          =   375
  479.          Index           =   7
  480.          Left            =   2820
  481.          TabIndex        =   27
  482.          ToolTipText     =   "Elimina"
  483.          Top             =   60
  484.          Width           =   375
  485.          _ExtentX        =   661
  486.          _ExtentY        =   661
  487.          BackColor       =   12632256
  488.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  489.             Name            =   "MS Sans Serif"
  490.             Size            =   8.25
  491.             Charset         =   0
  492.             Weight          =   400
  493.             Underline       =   0   'False
  494.             Italic          =   0   'False
  495.             Strikethrough   =   0   'False
  496.          EndProperty
  497.          Picture         =   "VB6DB.ctx":1261
  498.          MaskColor       =   -2147483633
  499.          ShowFlatGrey    =   -1  'True
  500.       End
  501.       Begin VB6database.axButton sdButton1 
  502.          Height          =   375
  503.          Index           =   8
  504.          Left            =   3480
  505.          TabIndex        =   28
  506.          ToolTipText     =   "Modifica"
  507.          Top             =   60
  508.          Width           =   375
  509.          _ExtentX        =   661
  510.          _ExtentY        =   661
  511.          BackColor       =   12632256
  512.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  513.             Name            =   "MS Sans Serif"
  514.             Size            =   8.25
  515.             Charset         =   0
  516.             Weight          =   400
  517.             Underline       =   0   'False
  518.             Italic          =   0   'False
  519.             Strikethrough   =   0   'False
  520.          EndProperty
  521.          Picture         =   "VB6DB.ctx":1373
  522.          MaskColor       =   -2147483633
  523.          ShowFlatGrey    =   -1  'True
  524.       End
  525.       Begin VB6database.axButton sdButton1 
  526.          Height          =   375
  527.          Index           =   9
  528.          Left            =   3960
  529.          TabIndex        =   29
  530.          ToolTipText     =   "Salva"
  531.          Top             =   60
  532.          Width           =   375
  533.          _ExtentX        =   661
  534.          _ExtentY        =   661
  535.          BackColor       =   12632256
  536.          Enabled         =   0   'False
  537.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  538.             Name            =   "MS Sans Serif"
  539.             Size            =   8.25
  540.             Charset         =   0
  541.             Weight          =   400
  542.             Underline       =   0   'False
  543.             Italic          =   0   'False
  544.             Strikethrough   =   0   'False
  545.          EndProperty
  546.          Picture         =   "VB6DB.ctx":1485
  547.          MaskColor       =   -2147483633
  548.          ShowFlatGrey    =   -1  'True
  549.       End
  550.       Begin VB6database.axButton sdButton1 
  551.          Height          =   375
  552.          Index           =   10
  553.          Left            =   4440
  554.          TabIndex        =   30
  555.          ToolTipText     =   "Annulla"
  556.          Top             =   60
  557.          Width           =   375
  558.          _ExtentX        =   661
  559.          _ExtentY        =   661
  560.          BackColor       =   12632256
  561.          Enabled         =   0   'False
  562.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  563.             Name            =   "MS Sans Serif"
  564.             Size            =   8.25
  565.             Charset         =   0
  566.             Weight          =   400
  567.             Underline       =   0   'False
  568.             Italic          =   0   'False
  569.             Strikethrough   =   0   'False
  570.          EndProperty
  571.          Picture         =   "VB6DB.ctx":1597
  572.          MaskColor       =   -2147483633
  573.          ShowFlatGrey    =   -1  'True
  574.       End
  575.       Begin VB.Line Line2 
  576.          BorderColor     =   &H00FFFFFF&
  577.          Index           =   2
  578.          X1              =   3360
  579.          X2              =   3360
  580.          Y1              =   60
  581.          Y2              =   420
  582.       End
  583.       Begin VB.Line Line1 
  584.          BorderColor     =   &H00808080&
  585.          Index           =   2
  586.          X1              =   3300
  587.          X2              =   3300
  588.          Y1              =   60
  589.          Y2              =   420
  590.       End
  591.       Begin VB.Line Line1 
  592.          BorderColor     =   &H00808080&
  593.          Index           =   1
  594.          X1              =   2160
  595.          X2              =   2160
  596.          Y1              =   60
  597.          Y2              =   420
  598.       End
  599.       Begin VB.Line Line2 
  600.          BorderColor     =   &H00FFFFFF&
  601.          Index           =   1
  602.          X1              =   2220
  603.          X2              =   2220
  604.          Y1              =   60
  605.          Y2              =   420
  606.       End
  607.       Begin VB.Line Line2 
  608.          BorderColor     =   &H00FFFFFF&
  609.          Index           =   0
  610.          X1              =   5040
  611.          X2              =   5040
  612.          Y1              =   60
  613.          Y2              =   420
  614.       End
  615.       Begin VB.Line Line1 
  616.          BorderColor     =   &H00808080&
  617.          Index           =   0
  618.          X1              =   4980
  619.          X2              =   4980
  620.          Y1              =   60
  621.          Y2              =   420
  622.       End
  623.       Begin VB.Label Label1 
  624.          Alignment       =   2  'Center
  625.          BackStyle       =   0  'Transparent
  626.          Height          =   255
  627.          Left            =   5820
  628.          TabIndex        =   1
  629.          Top             =   120
  630.          Width           =   1635
  631.       End
  632.    End
  633.    Begin Threed.SSPanel SSPanel3 
  634.       Align           =   1  'Align Top
  635.       Height          =   1095
  636.       Left            =   0
  637.       TabIndex        =   15
  638.       Top             =   1095
  639.       Visible         =   0   'False
  640.       Width           =   7620
  641.       _Version        =   65536
  642.       _ExtentX        =   13441
  643.       _ExtentY        =   1931
  644.       _StockProps     =   15
  645.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  646.          Name            =   "MS Sans Serif"
  647.          Size            =   8.25
  648.          Charset         =   0
  649.          Weight          =   400
  650.          Underline       =   0   'False
  651.          Italic          =   0   'False
  652.          Strikethrough   =   0   'False
  653.       EndProperty
  654.       BorderWidth     =   1
  655.       BevelInner      =   1
  656.       Begin OACTools.OACLabel OACLabel1 
  657.          Height          =   195
  658.          Left            =   5880
  659.          TabIndex        =   18
  660.          ToolTipText     =   "Anteprima di stampa"
  661.          Top             =   600
  662.          Width           =   1530
  663.          _ExtentX        =   2699
  664.          _ExtentY        =   344
  665.          Caption         =   "Stampa voci"
  666.          BackColor       =   12632256
  667.          ForeColor       =   16711680
  668.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  669.             Name            =   "Tahoma"
  670.             Size            =   8.25
  671.             Charset         =   0
  672.             Weight          =   700
  673.             Underline       =   0   'False
  674.             Italic          =   0   'False
  675.             Strikethrough   =   0   'False
  676.          EndProperty
  677.       End
  678.       Begin VB.ListBox List2 
  679.          Appearance      =   0  'Flat
  680.          BackColor       =   &H00C0FFFF&
  681.          Columns         =   3
  682.          ForeColor       =   &H00FF0000&
  683.          Height          =   615
  684.          Left            =   120
  685.          MouseIcon       =   "VB6DB.ctx":16A9
  686.          MousePointer    =   99  'Custom
  687.          MultiSelect     =   1  'Simple
  688.          TabIndex        =   16
  689.          TabStop         =   0   'False
  690.          ToolTipText     =   "Per tutte le voci non occorre selezionare..."
  691.          Top             =   360
  692.          Width           =   5535
  693.       End
  694.       Begin VB6database.axButton sdButton4 
  695.          Height          =   195
  696.          Left            =   7380
  697.          TabIndex        =   33
  698.          ToolTipText     =   "Chiudi sezione di stampa"
  699.          Top             =   60
  700.          Width           =   195
  701.          _ExtentX        =   344
  702.          _ExtentY        =   344
  703.          BackColor       =   12632256
  704.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  705.             Name            =   "MS Sans Serif"
  706.             Size            =   8.25
  707.             Charset         =   0
  708.             Weight          =   400
  709.             Underline       =   0   'False
  710.             Italic          =   0   'False
  711.             Strikethrough   =   0   'False
  712.          EndProperty
  713.          Picture         =   "VB6DB.ctx":17FB
  714.          MaskColor       =   -2147483633
  715.       End
  716.       Begin VB.Label Label8 
  717.          AutoSize        =   -1  'True
  718.          BackStyle       =   0  'Transparent
  719.          Caption         =   "Seleziona le voci da stampare..."
  720.          Height          =   195
  721.          Left            =   180
  722.          TabIndex        =   17
  723.          Top             =   120
  724.          Width           =   2250
  725.       End
  726.    End
  727. Attribute VB_Name = "VB6DB"
  728. Attribute VB_GlobalNameSpace = False
  729. Attribute VB_Creatable = True
  730. Attribute VB_PredeclaredId = False
  731. Attribute VB_Exposed = True
  732. Attribute VB_Ext_KEY = "PropPageWizardRun" ,"Yes"
  733. Private NomeDBase
  734. Private DB As Data
  735. Public ControlliDisattivati As Boolean
  736. 'Eventi
  737. Event BeforeMoveNext()
  738. Event AfterMoveNext()
  739. Event BeforeMovePrevious()
  740. Event AfterMovePrevious()
  741. Event BeforeMoveLast()
  742. Event AfterMoveLast()
  743. Event BeforeMoveFirst()
  744. Event AfterMoveFirst()
  745. Event AfterDelete()
  746. Event BeforeDelete()
  747. Event AfterButton(Index As Integer)
  748. Event BeforeUpdate()
  749. Event AfterUpdate()
  750. Event BeforeAdd()
  751. Event AfterAdd()
  752. Event BeforeEdit()
  753. Event AfterEdit()
  754. Public Sub TrovaDBControlli(ByVal ListB As Object)
  755.     Dim iCount As Integer
  756.     For iCount = 0 To UserControl.ParentControls.Count - 1
  757.       If TypeOf UserControl.ParentControls(iCount) Is Data Then
  758.         ListB.AddItem TrovaNomeDB(UserControl.ParentControls(iCount))
  759.       End If
  760.     Next
  761. End Sub
  762. Private Function TrovaDB(ByVal Nome As String) As Control
  763.     Dim C As Integer
  764.     Dim DBTrovato As Object
  765.     For C = 0 To UserControl.ParentControls.Count - 1
  766.         If UCase(TrovaNomeDB(UserControl.ParentControls(C))) = UCase(Nome) Then
  767.             Set DBTrovato = UserControl.ParentControls(C)
  768.             Exit For
  769.         End If
  770.     Next
  771.     Set TrovaDB = DBTrovato
  772. End Function
  773. Private Function TrovaNomeDB(ByVal Controllo As Object) As String
  774.     Dim sIndex As String
  775.     Dim iIndex As Integer
  776.     On Local Error Resume Next
  777.     iIndex = Controllo.Index
  778.     If Err = 0 Then
  779.       If Controllo.Index > 0 Then
  780.         sIndex = "(" & iIndex & ")"
  781.       End If
  782.     End If
  783.     TrovaNomeDB = Controllo.Name & sIndex
  784. End Function
  785. Public Property Get NomeDB() As String
  786. Attribute NomeDB.VB_ProcData.VB_Invoke_Property = "ppVB6DB"
  787.    NomeDB = NomeDBase
  788. End Property
  789. Public Property Let NomeDB(ByVal NuovoNomeDB As String)
  790.    NomeDBase = NuovoNomeDB
  791.    PropertyChanged "NomeDB"
  792. End Property
  793. Private Sub ComboBox1_Click()
  794. Select Case ComboBox1.Text
  795.     Case "Cerca"
  796.         Label5.Visible = True
  797.         Label7.Visible = False
  798.         Label4.Visible = True
  799.         List1.Visible = True
  800.         Option1.Visible = False
  801.         Option2.Visible = False
  802.         Label3.Visible = True
  803.         Label6.Visible = False
  804.         Text1.Visible = True
  805.         ComboBox2.Clear
  806.         For i = 0 To DB.Recordset.Fields.Count - 1
  807.             ComboBox2.AddItem DB.Recordset.Fields(i).Name
  808.         Next i
  809.     Case "Ordina"
  810.         Label5.Visible = False
  811.         Label7.Visible = True
  812.         Label4.Visible = False
  813.         List1.Visible = False
  814.         Option1.Visible = True
  815.         Option2.Visible = True
  816.         Label3.Visible = False
  817.         Label6.Visible = True
  818.         Text1.Visible = False
  819.         ComboBox2.Clear
  820.         For i = 0 To DB.Recordset.Fields.Count - 1
  821.             ComboBox2.AddItem DB.Recordset.Fields(i).Name
  822.         Next i
  823.     Case "Stampa"
  824.         SSPanel2.Visible = False
  825.         SSPanel3.Visible = True
  826.         List2.Clear
  827.         For i = 0 To DB.Recordset.Fields.Count - 1
  828.             List2.AddItem DB.Recordset.Fields(i).Name
  829.         Next i
  830.         DBCR.RecordSource = DB.RecordSource
  831.         DBCR.Refresh
  832. End Select
  833. End Sub
  834. Private Sub List1_Click()
  835. DB.Recordset.AbsolutePosition = List1.ListIndex
  836. End Sub
  837. Private Sub OACLabel1_Click()
  838. Dim Campi As String
  839. Dim DBRecordSource As String
  840. CR.WindowState = crptMaximized
  841. Select Case List2.SelCount
  842.     Case Is >= 1
  843.         Campi = ""
  844.         For i = 0 To List2.ListCount - 1
  845.             If List2.Selected(i) Then
  846.                 Campi = Campi + "[" & List2.List(i) & "],"
  847.             End If
  848.         Next i
  849.         Campi = Mid(Campi, 1, Len(Campi) - 1)
  850.     Case Is = 0
  851.         Campi = "*"
  852. End Select
  853. If UCase(Mid(DB.RecordSource, 1, 6)) = "SELECT" Then
  854.     pos1 = InStr(1, UCase(DB.RecordSource), "FROM")
  855.     pos2 = InStr(pos1, UCase(DB.RecordSource), "[")
  856.     pos3 = InStr(pos2, UCase(DB.RecordSource), "]")
  857.     DBRecordSource = Mid(DB.RecordSource, pos2 + 1, pos3 - pos2 - 1)
  858.     DBRecordSource = DB.RecordSource
  859. End If
  860. DBCR.RecordSource = "select " & Campi & " from " & "[" & DBRecordSource & "]"
  861. DBCR.Refresh
  862. CR.Action = 1
  863. End Sub
  864. Private Sub Option1_Click()
  865. If ComboBox2.Text <> "" Then
  866.     DB.Recordset.Sort = "[" & ComboBox2.Text & "]"
  867.     Set DB.Recordset = DB.Recordset.OpenRecordset
  868. End If
  869. End Sub
  870. Private Sub Option2_Click()
  871. If ComboBox2.Text <> "" Then
  872.     DB.Recordset.Sort = "[" & ComboBox2.Text & "]" & " DESC"
  873.     Set DB.Recordset = DB.Recordset.OpenRecordset
  874. End If
  875. End Sub
  876. Private Sub sdButton2_Click()
  877. For i = 0 To 8
  878.     sdButton1(i).Enabled = True
  879. Next i
  880. SSPanel2.Visible = False
  881. DB.Refresh
  882. List1.Clear
  883. ComboBox2.Clear
  884. Text1.Text = ""
  885. End Sub
  886. Private Sub sdButton3_Click()
  887. For i = 0 To 8
  888.     sdButton1(i).Enabled = True
  889. Next i
  890. SSPanel2.Visible = False
  891. End Sub
  892. Private Sub sdButton4_Click()
  893. ComboBox1.Text = "Cerca"
  894. SSPanel2.Visible = True
  895. SSPanel3.Visible = False
  896. DBCR.RecordSource = DB.RecordSource
  897. DBCR.Refresh
  898. End Sub
  899. Private Sub Text1_Change()
  900. On Error Resume Next
  901. If ComboBox2.Text <> "" Then
  902.     DB.Refresh
  903.     DB.Recordset.Filter = "[" & ComboBox2.Text & "]" + " like '*" + Text1.Text + "*'"
  904.     Set DB.Recordset = DB.Recordset.OpenRecordset
  905.     List1.Clear
  906.     Do While Not DB.Recordset.EOF
  907.         List1.AddItem "n
  908. " & Str(DB.Recordset.AbsolutePosition + 1)
  909.         DB.Recordset.MoveNext
  910.     Loop
  911.     DB.Recordset.AbsolutePosition = 0
  912. End If
  913. End Sub
  914. Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
  915. NomeDBase = PropBag.ReadProperty("NomeDB", "")
  916. End Sub
  917. Private Sub UserControl_Resize()
  918. UserControl.Height = 1605
  919. UserControl.Width = 7620
  920. End Sub
  921. Private Sub sdButton1_Click(Index As Integer)
  922. On Error GoTo errore
  923. Label1.Caption = ""
  924. 'scorrimento / elimina / modifica
  925. If DB.Recordset.RecordCount <> 0 Then
  926.  Select Case Index
  927.     Case 0
  928.         'primo
  929.         If DB.Recordset.EditMode <> dbEditNone Then
  930.             DB.UpdateRecord
  931.         End If
  932.         RaiseEvent BeforeMoveFirst
  933.         'If Not ControlliDisattivati Then Call DisattivaDBControlli
  934.         DB.Recordset.MoveFirst
  935.         Label1.Caption = "Inizio archivio"
  936.         Beep
  937.         RaiseEvent AfterMoveFirst
  938.         For i = 9 To 10
  939.             sdButton1(i).Enabled = False
  940.         Next i
  941.     Case 1
  942.         'precedente
  943.         If DB.Recordset.EditMode <> dbEditNone Then
  944.             DB.UpdateRecord
  945.         End If
  946.         RaiseEvent BeforeMovePrevious
  947.         'If Not ControlliDisattivati Then Call DisattivaDBControlli
  948.         DB.Recordset.MovePrevious
  949.         Label1.Caption = "Voce n
  950. " & Str(DB.Recordset.AbsolutePosition + 1)
  951.         If DB.Recordset.BOF Then
  952.             Label1.Caption = "Inizio archivio"
  953.             DB.Recordset.MoveNext
  954.             Beep
  955.         End If
  956.         RaiseEvent AfterMovePrevious
  957.         For i = 9 To 10
  958.             sdButton1(i).Enabled = False
  959.         Next i
  960.     Case 2
  961.         'seguente
  962.         If DB.Recordset.EditMode <> dbEditNone Then
  963.             DB.UpdateRecord
  964.         End If
  965.         RaiseEvent BeforeMoveNext
  966.         'If Not ControlliDisattivati Then Call DisattivaDBControlli
  967.         DB.Recordset.MoveNext
  968.         Label1.Caption = "Voce n
  969. " & Str(DB.Recordset.AbsolutePosition + 1)
  970.         If DB.Recordset.EOF Then
  971.             Label1.Caption = "Fine archivio"
  972.             DB.Recordset.MovePrevious
  973.             Beep
  974.         End If
  975.         RaiseEvent AfterMoveNext
  976.         For i = 9 To 10
  977.             sdButton1(i).Enabled = False
  978.         Next i
  979.     Case 3
  980.         'ultimo
  981.         If DB.Recordset.EditMode <> dbEditNone Then
  982.             DB.UpdateRecord
  983.         End If
  984.         RaiseEvent BeforeMoveLast
  985.         'If Not ControlliDisattivati Then Call DisattivaDBControlli
  986.         DB.Recordset.MoveLast
  987.         Label1.Caption = "Fine archivio"
  988.         Beep
  989.         RaiseEvent AfterMoveLast
  990.         For i = 9 To 10
  991.             sdButton1(i).Enabled = False
  992.         Next i
  993.     Case 7
  994.         'elimina
  995.         If DB.Recordset.EditMode <> dbEditNone Then
  996.             DB.UpdateRecord
  997.         End If
  998.         RaiseEvent BeforeDelete
  999.         'If Not ControlliDisattivati Then Call DisattivaDBControlli
  1000.         Label1.Caption = "Eliminazione voce"
  1001.         risposta = MsgBox("Sei sicuro di eliminare la voce n
  1002. " & Str(DB.Recordset.AbsolutePosition + 1), vbYesNo, "Attenzione...!!")
  1003.         If risposta = vbYes Then
  1004.             DB.Recordset.Delete
  1005.             DB.Refresh
  1006.             Label1.Caption = "Voce eliminata"
  1007.             RaiseEvent AfterDelete
  1008.         Else
  1009.             Label1.Caption = ""
  1010.         End If
  1011.         For i = 9 To 10
  1012.             sdButton1(i).Enabled = False
  1013.         Next i
  1014.     Case 8
  1015.         'modifica
  1016.         If DB.Recordset.EditMode <> dbEditNone Then
  1017.             DB.UpdateRecord
  1018.         End If
  1019.         RaiseEvent BeforeEdit
  1020.         'If ControlliDisattivati Then Call AttivaDBControlli
  1021.         Label1.Caption = "Modifica voce"
  1022.         For i = 0 To 7
  1023.             sdButton1(i).Enabled = False
  1024.         Next i
  1025.         For i = 9 To 10
  1026.             sdButton1(i).Enabled = True
  1027.         Next i
  1028.         DB.Recordset.Edit
  1029.         RaiseEvent AfterEdit
  1030.     Case 9
  1031.         'salva
  1032.         RaiseEvent BeforeUpdate
  1033.         'If Not ControlliDisattivati Then Call DisattivaDBControlli
  1034.         Label1.Caption = "Modifica effettuata"
  1035.         For i = 0 To 7
  1036.             sdButton1(i).Enabled = True
  1037.         Next i
  1038.         For i = 9 To 10
  1039.             sdButton1(i).Enabled = False
  1040.         Next i
  1041.         DB.UpdateRecord
  1042.         RaiseEvent AfterUpdate
  1043.     Case 10
  1044.         'annulla
  1045.         'If Not ControlliDisattivati Then Call DisattivaDBControlli
  1046.         Label1.Caption = "Modifica annullata"
  1047.         For i = 0 To 7
  1048.             sdButton1(i).Enabled = True
  1049.         Next i
  1050.         For i = 9 To 10
  1051.             sdButton1(i).Enabled = False
  1052.         Next i
  1053.         DB.Recordset.CancelUpdate
  1054.     Case 4
  1055.         'funzioni speciali
  1056.         If DB.Recordset.EditMode <> dbEditNone Then
  1057.             DB.UpdateRecord
  1058.         End If
  1059.         SSPanel2.Visible = True
  1060.         ComboBox1.Clear
  1061.         ComboBox1.AddItem "Cerca"
  1062.         ComboBox1.AddItem "Ordina"
  1063.         ComboBox1.AddItem "Stampa"
  1064.         For i = 0 To 10
  1065.             sdButton1(i).Enabled = False
  1066.         Next i
  1067.  End Select
  1068.     'nessun record
  1069.     Label1.Caption = "Nessuna voce"
  1070.     Beep
  1071. End If
  1072. 'aggiungi
  1073. Select Case Index
  1074.     Case 6
  1075.         'aggiungi
  1076.         DB.UpdateRecord
  1077.         'If ControlliDisattivati Then Call AttivaDBControlli
  1078.         RaiseEvent BeforeAdd
  1079.         DB.Recordset.AddNew
  1080.         RaiseEvent BeforeUpdate
  1081.         DB.UpdateRecord
  1082.         DB.Recordset.Bookmark = DB.Recordset.LastModified
  1083.         Label1.Caption = "Nuova voce"
  1084.         'RaiseEvent AfterUpdate
  1085.         RaiseEvent AfterAdd
  1086.         For i = 9 To 10
  1087.             sdButton1(i).Enabled = True
  1088.         Next i
  1089. End Select
  1090. RaiseEvent AfterButton(Index)
  1091. Exit Sub
  1092. errore:
  1093.   Select Case Err
  1094.     Case 91
  1095.         MsgBox "Fonte dati DB non connessa o con errori.... Assicurarsi di avere caricato un controllo DataBase , di avere impostato il percorso quindi la sorgente dati. Alla fine assegnare alla propriet
  1096.  NomeDB il controllo DataBase selezionandolo dalla lista generata in modo automatico!!", vbCritical, "Fonte DB non connessa..."
  1097.     Case Else
  1098.         MsgBox "Il database utilizzato presenta indici o voci che non possono essere nulli.... Analizzare il database e i campi correlati!!", vbCritical, "Errore indici correlati"
  1099.   End Select
  1100. End Sub
  1101. Private Sub UserControl_Show()
  1102. On Error GoTo esci
  1103. Set DB = TrovaDB(NomeDBase)
  1104. 'Call DisattivaDBControlli
  1105. If DB.Recordset.RecordCount <> 0 Then
  1106.     Label1.Caption = "Voce n
  1107.     Label1.Caption = "Archivio vuoto"
  1108. End If
  1109. 'Crystal Report
  1110. DBCR.DatabaseName = DB.DatabaseName
  1111. Exit Sub
  1112. esci:
  1113. End Sub
  1114. Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
  1115. PropBag.WriteProperty "NomeDB", NomeDBase, ""
  1116. End Sub
  1117. Public Sub LeggiDB(ByVal Nome As String, ByVal Txt As Object, ByVal Txt1 As Object)
  1118.     Dim iC As Integer
  1119.     Dim iDBTrovato As Object
  1120.     For iC = 0 To UserControl.ParentControls.Count - 1
  1121.         If UCase(TrovaNomeDB(UserControl.ParentControls(iC))) = UCase(Nome) Then
  1122.             Set iDBTrovato = UserControl.ParentControls(iC)
  1123.             Exit For
  1124.         End If
  1125.     Next
  1126.     Txt.Text = iDBTrovato.DatabaseName
  1127.     Txt1.Text = iDBTrovato.RecordSource
  1128. End Sub
  1129. Public Sub DisattivaDBControlli()
  1130. On Error Resume Next
  1131. ControlliDisattivati = True
  1132.     For i = 9 To 10
  1133.         sdButton1(i).Enabled = False
  1134.     Next i
  1135.     Dim iCount As Integer
  1136.     For iCount = 0 To UserControl.ParentControls.Count - 1
  1137.       If TypeOf UserControl.ParentControls(iCount) Is TextBox Then
  1138.             UserControl.ParentControls(iCount).Locked = True
  1139.       End If
  1140.       If TypeOf UserControl.ParentControls(iCount) Is ListBox Then
  1141.             UserControl.ParentControls(iCount).Enabled = False
  1142.       End If
  1143.       If TypeOf UserControl.ParentControls(iCount) Is OACLabel Then
  1144.             UserControl.ParentControls(iCount).Enabled = False
  1145.       End If
  1146.       If TypeOf UserControl.ParentControls(iCount) Is CheckBox Then
  1147.             UserControl.ParentControls(iCount).Enabled = False
  1148.       End If
  1149.       If TypeOf UserControl.ParentControls(iCount) Is SSCheck Then
  1150.             UserControl.ParentControls(iCount).Enabled = False
  1151.       End If
  1152.       If TypeOf UserControl.ParentControls(iCount) Is OptionButton Then
  1153.             UserControl.ParentControls(iCount).Enabled = False
  1154.       End If
  1155.       If TypeOf UserControl.ParentControls(iCount) Is SSOption Then
  1156.             UserControl.ParentControls(iCount).Enabled = False
  1157.       End If
  1158.       If TypeOf UserControl.ParentControls(iCount) Is ComboBox Then
  1159.             UserControl.ParentControls(iCount).Locked = True
  1160.       End If
  1161.       If TypeOf UserControl.ParentControls(iCount) Is DBCombo Then
  1162.             UserControl.ParentControls(iCount).Locked = True
  1163.       End If
  1164.       If TypeOf UserControl.ParentControls(iCount) Is DBGrid Then
  1165.             UserControl.ParentControls(iCount).Splits(0).Locked = True
  1166.       End If
  1167.        If TypeOf UserControl.ParentControls(iCount) Is DBList Then
  1168.             UserControl.ParentControls(iCount).Locked = True
  1169.       End If
  1170.      
  1171.     Next
  1172. End Sub
  1173. Public Sub AttivaDBControlli()
  1174. On Error Resume Next
  1175. ControlliDisattivati = False
  1176.     Dim iCount As Integer
  1177.     For iCount = 0 To UserControl.ParentControls.Count - 1
  1178.       If TypeOf UserControl.ParentControls(iCount) Is TextBox Then
  1179.             UserControl.ParentControls(iCount).Locked = False
  1180.       End If
  1181.       If TypeOf UserControl.ParentControls(iCount) Is ListBox Then
  1182.             UserControl.ParentControls(iCount).Enabled = True
  1183.       End If
  1184.       If TypeOf UserControl.ParentControls(iCount) Is OACLabel Then
  1185.             UserControl.ParentControls(iCount).Enabled = True
  1186.       End If
  1187.       If TypeOf UserControl.ParentControls(iCount) Is CheckBox Then
  1188.             UserControl.ParentControls(iCount).Enabled = True
  1189.       End If
  1190.       If TypeOf UserControl.ParentControls(iCount) Is SSCheck Then
  1191.             UserControl.ParentControls(iCount).Enabled = True
  1192.       End If
  1193.       If TypeOf UserControl.ParentControls(iCount) Is OptionButton Then
  1194.             UserControl.ParentControls(iCount).Enabled = True
  1195.       End If
  1196.       If TypeOf UserControl.ParentControls(iCount) Is SSOption Then
  1197.             UserControl.ParentControls(iCount).Enabled = True
  1198.       End If
  1199.       If TypeOf UserControl.ParentControls(iCount) Is ComboBox Then
  1200.             UserControl.ParentControls(iCount).Locked = False
  1201.       End If
  1202.       If TypeOf UserControl.ParentControls(iCount) Is DBCombo Then
  1203.             UserControl.ParentControls(iCount).Locked = False
  1204.       End If
  1205.       If TypeOf UserControl.ParentControls(iCount) Is DBGrid Then
  1206.             UserControl.ParentControls(iCount).Splits(0).Locked = False
  1207.       End If
  1208.        If TypeOf UserControl.ParentControls(iCount) Is DBList Then
  1209.             UserControl.ParentControls(iCount).Locked = False
  1210.       End If
  1211.     Next
  1212. End Sub
  1213.