home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Righello207379732007.psc / Generale.pag < prev    next >
Text File  |  2007-01-23  |  5KB  |  171 lines

  1. VERSION 5.00
  2. Begin VB.PropertyPage Generale 
  3.    Caption         =   "Generale"
  4.    ClientHeight    =   3495
  5.    ClientLeft      =   0
  6.    ClientTop       =   0
  7.    ClientWidth     =   5925
  8.    LockControls    =   -1  'True
  9.    PaletteMode     =   0  'Halftone
  10.    ScaleHeight     =   3495
  11.    ScaleWidth      =   5925
  12.    Begin VB.TextBox txtMinimo 
  13.       Alignment       =   1  'Right Justify
  14.       Height          =   330
  15.       Left            =   1710
  16.       TabIndex        =   8
  17.       ToolTipText     =   "Valore iniziale della scala"
  18.       Top             =   1680
  19.       Width           =   840
  20.    End
  21.    Begin VB.ComboBox cboOrientamento 
  22.       Height          =   315
  23.       Left            =   1710
  24.       Style           =   2  'Dropdown List
  25.       TabIndex        =   6
  26.       Top             =   1170
  27.       Width           =   4095
  28.    End
  29.    Begin VB.ComboBox cboUM 
  30.       Height          =   315
  31.       Left            =   1710
  32.       Style           =   2  'Dropdown List
  33.       TabIndex        =   4
  34.       Top             =   660
  35.       Width           =   4095
  36.    End
  37.    Begin VB.ComboBox cboBordo 
  38.       Height          =   315
  39.       Left            =   1710
  40.       Style           =   2  'Dropdown List
  41.       TabIndex        =   3
  42.       Top             =   165
  43.       Width           =   4095
  44.    End
  45.    Begin VB.CheckBox chkPosition 
  46.       Caption         =   "Position"
  47.       Height          =   285
  48.       Left            =   3120
  49.       TabIndex        =   1
  50.       ToolTipText     =   "Mostra la linea di posizione del cursore"
  51.       Top             =   2190
  52.       Width           =   1740
  53.    End
  54.    Begin VB.CheckBox chkLocked 
  55.       Caption         =   "Locked"
  56.       Height          =   285
  57.       Left            =   3120
  58.       TabIndex        =   0
  59.       ToolTipText     =   "Blocca il controllo, impedendone le modifiche"
  60.       Top             =   1695
  61.       Width           =   1740
  62.    End
  63.    Begin VB.Label lblMinimo 
  64.       AutoSize        =   -1  'True
  65.       Caption         =   "Minimo:"
  66.       Height          =   195
  67.       Left            =   90
  68.       TabIndex        =   9
  69.       Top             =   1755
  70.       Width           =   540
  71.    End
  72.    Begin VB.Label Label3 
  73.       AutoSize        =   -1  'True
  74.       Caption         =   "Orientamento:"
  75.       Height          =   195
  76.       Left            =   90
  77.       TabIndex        =   7
  78.       Top             =   1230
  79.       Width           =   990
  80.    End
  81.    Begin VB.Label Label2 
  82.       AutoSize        =   -1  'True
  83.       Caption         =   "Unitα di misura:"
  84.       Height          =   195
  85.       Left            =   90
  86.       TabIndex        =   5
  87.       Top             =   720
  88.       Width           =   1080
  89.    End
  90.    Begin VB.Label Label1 
  91.       AutoSize        =   -1  'True
  92.       Caption         =   "Stile bordo:"
  93.       Height          =   195
  94.       Left            =   90
  95.       TabIndex        =   2
  96.       Top             =   210
  97.       Width           =   795
  98.    End
  99. End
  100. Attribute VB_Name = "Generale"
  101. Attribute VB_GlobalNameSpace = False
  102. Attribute VB_Creatable = True
  103. Attribute VB_PredeclaredId = False
  104. Attribute VB_Exposed = True
  105. Private Sub cboBordo_click()
  106.     Changed = True
  107. End Sub
  108.  
  109. Private Sub cboOrientamento_click()
  110.     Changed = True
  111. End Sub
  112.  
  113. Private Sub cboUM_click()
  114.     Changed = True
  115. End Sub
  116.  
  117. Private Sub chkPosition_Click()
  118.     Changed = True
  119. End Sub
  120.  
  121. Private Sub chkLocked_Click()
  122.     Changed = True
  123. End Sub
  124.  
  125. Private Sub PropertyPage_Initialize()
  126.     With cboBordo
  127.         .Clear
  128.         .AddItem "0 - NoBorder"
  129.         .AddItem "1 - Sunken"
  130.         .AddItem "2 - SunkenOuter"
  131.         .AddItem "3 - Raised"
  132.         .AddItem "4 - RaisedInner"
  133.         .AddItem "5 - Bump"
  134.         .AddItem "6 - Etched"
  135.     End With
  136.     With cboUM
  137.         .Clear
  138.         .AddItem "0 - Millimetri"
  139.         .AddItem "1 - Inch"
  140.         .AddItem "2 - Pixel"
  141.         .AddItem "3 - Twips"
  142.     End With
  143.     With cboOrientamento
  144.         .Clear
  145.         .AddItem "0 - Orizzontale"
  146.         .AddItem "1 - Verticale"
  147.     End With
  148. End Sub
  149.  
  150. Private Sub PropertyPage_ApplyChanges()
  151.     SelectedControls(0).Position = (chkPosition.Value = vbChecked)
  152.     SelectedControls(0).Locked = (chkLocked.Value = vbChecked)
  153.     SelectedControls(0).BorderStyle = cboBordo.ListIndex
  154.     SelectedControls(0).RulerScaleMode = cboUM.ListIndex
  155.     SelectedControls(0).Orientation = cboOrientamento.ListIndex
  156.     SelectedControls(0).Minimo = Val(Replace(txtMinimo.Text, ",", "."))
  157. End Sub
  158.  
  159. Private Sub PropertyPage_SelectionChanged()
  160.     chkPosition.Value = (SelectedControls(0).Position And vbChecked)
  161.     chkLocked.Value = (SelectedControls(0).Locked And vbChecked)
  162.     cboBordo.ListIndex = SelectedControls(0).BorderStyle
  163.     cboUM.ListIndex = SelectedControls(0).RulerScaleMode
  164.     cboOrientamento.ListIndex = SelectedControls(0).Orientation
  165.     txtMinimo.Text = SelectedControls(0).Minimo
  166. End Sub
  167.  
  168. Private Sub txtMinimo_Change()
  169.     Changed = True
  170. End Sub
  171.