home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / tool / various / dbgrid / editkeyf.frm < prev    next >
Text File  |  1995-02-27  |  9KB  |  336 lines

  1. VERSION 2.00
  2. Begin Form EditKeyForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "DBT Grid Edit Key Selection"
  6.    ClientHeight    =   3360
  7.    ClientLeft      =   1515
  8.    ClientTop       =   3270
  9.    ClientWidth     =   6045
  10.    Height          =   3885
  11.    Left            =   1455
  12.    LinkMode        =   1  'Source
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3360
  17.    ScaleWidth      =   6045
  18.    Top             =   2805
  19.    Width           =   6165
  20.    Begin CommandButton Command14 
  21.       Caption         =   "<Space Bar>"
  22.       Height          =   255
  23.       Left            =   1200
  24.       TabIndex        =   12
  25.       Top             =   1920
  26.       Width           =   3135
  27.    End
  28.    Begin CommandButton Command15 
  29.       Caption         =   "Enter"
  30.       FontBold        =   -1  'True
  31.       FontItalic      =   0   'False
  32.       FontName        =   "Arial"
  33.       FontSize        =   8.25
  34.       FontStrikethru  =   0   'False
  35.       FontUnderline   =   0   'False
  36.       Height          =   255
  37.       Left            =   4080
  38.       TabIndex        =   13
  39.       Top             =   1200
  40.       Width           =   615
  41.    End
  42.    Begin CommandButton Command13 
  43.       Caption         =   "F12"
  44.       FontBold        =   -1  'True
  45.       FontItalic      =   0   'False
  46.       FontName        =   "Arial"
  47.       FontSize        =   8.25
  48.       FontStrikethru  =   0   'False
  49.       FontUnderline   =   0   'False
  50.       Height          =   255
  51.       Left            =   4920
  52.       TabIndex        =   11
  53.       Top             =   600
  54.       Width           =   375
  55.    End
  56.    Begin CommandButton Command12 
  57.       Caption         =   "F11"
  58.       FontBold        =   -1  'True
  59.       FontItalic      =   0   'False
  60.       FontName        =   "Arial"
  61.       FontSize        =   8.25
  62.       FontStrikethru  =   0   'False
  63.       FontUnderline   =   0   'False
  64.       Height          =   255
  65.       Left            =   4560
  66.       TabIndex        =   10
  67.       Top             =   600
  68.       Width           =   375
  69.    End
  70.    Begin CommandButton Command10 
  71.       Caption         =   "F9"
  72.       FontBold        =   -1  'True
  73.       FontItalic      =   0   'False
  74.       FontName        =   "Arial"
  75.       FontSize        =   8.25
  76.       FontStrikethru  =   0   'False
  77.       FontUnderline   =   0   'False
  78.       Height          =   255
  79.       Left            =   3840
  80.       TabIndex        =   9
  81.       Top             =   600
  82.       Width           =   375
  83.    End
  84.    Begin CommandButton Command9 
  85.       Caption         =   "F8"
  86.       FontBold        =   -1  'True
  87.       FontItalic      =   0   'False
  88.       FontName        =   "Arial"
  89.       FontSize        =   8.25
  90.       FontStrikethru  =   0   'False
  91.       FontUnderline   =   0   'False
  92.       Height          =   255
  93.       Left            =   3480
  94.       TabIndex        =   8
  95.       Top             =   600
  96.       Width           =   375
  97.    End
  98.    Begin CommandButton Command8 
  99.       Caption         =   "F7"
  100.       FontBold        =   -1  'True
  101.       FontItalic      =   0   'False
  102.       FontName        =   "Arial"
  103.       FontSize        =   8.25
  104.       FontStrikethru  =   0   'False
  105.       FontUnderline   =   0   'False
  106.       Height          =   255
  107.       Left            =   3120
  108.       TabIndex        =   7
  109.       Top             =   600
  110.       Width           =   375
  111.    End
  112.    Begin CommandButton Command7 
  113.       Caption         =   "F6"
  114.       FontBold        =   -1  'True
  115.       FontItalic      =   0   'False
  116.       FontName        =   "Arial"
  117.       FontSize        =   8.25
  118.       FontStrikethru  =   0   'False
  119.       FontUnderline   =   0   'False
  120.       Height          =   255
  121.       Left            =   2760
  122.       TabIndex        =   6
  123.       Top             =   600
  124.       Width           =   375
  125.    End
  126.    Begin CommandButton Command6 
  127.       Caption         =   "F5"
  128.       FontBold        =   -1  'True
  129.       FontItalic      =   0   'False
  130.       FontName        =   "Arial"
  131.       FontSize        =   8.25
  132.       FontStrikethru  =   0   'False
  133.       FontUnderline   =   0   'False
  134.       Height          =   255
  135.       Left            =   2400
  136.       TabIndex        =   5
  137.       Top             =   600
  138.       Width           =   375
  139.    End
  140.    Begin CommandButton Command5 
  141.       Caption         =   "F4"
  142.       FontBold        =   -1  'True
  143.       FontItalic      =   0   'False
  144.       FontName        =   "Arial"
  145.       FontSize        =   8.25
  146.       FontStrikethru  =   0   'False
  147.       FontUnderline   =   0   'False
  148.       Height          =   255
  149.       Left            =   2040
  150.       TabIndex        =   4
  151.       Top             =   600
  152.       Width           =   375
  153.    End
  154.    Begin CommandButton Command4 
  155.       Caption         =   "F3"
  156.       FontBold        =   -1  'True
  157.       FontItalic      =   0   'False
  158.       FontName        =   "Arial"
  159.       FontSize        =   8.25
  160.       FontStrikethru  =   0   'False
  161.       FontUnderline   =   0   'False
  162.       Height          =   255
  163.       Left            =   1680
  164.       TabIndex        =   3
  165.       Top             =   600
  166.       Width           =   375
  167.    End
  168.    Begin CommandButton Command3 
  169.       Caption         =   "F2"
  170.       FontBold        =   -1  'True
  171.       FontItalic      =   0   'False
  172.       FontName        =   "Arial"
  173.       FontSize        =   8.25
  174.       FontStrikethru  =   0   'False
  175.       FontUnderline   =   0   'False
  176.       Height          =   255
  177.       Left            =   1320
  178.       TabIndex        =   2
  179.       Top             =   600
  180.       Width           =   375
  181.    End
  182.    Begin CommandButton Command2 
  183.       Caption         =   "F1"
  184.       FontBold        =   -1  'True
  185.       FontItalic      =   0   'False
  186.       FontName        =   "Arial"
  187.       FontSize        =   8.25
  188.       FontStrikethru  =   0   'False
  189.       FontUnderline   =   0   'False
  190.       Height          =   255
  191.       Left            =   960
  192.       TabIndex        =   1
  193.       Top             =   600
  194.       Width           =   375
  195.    End
  196.    Begin CommandButton Command1 
  197.       Caption         =   "Esc"
  198.       FontBold        =   -1  'True
  199.       FontItalic      =   0   'False
  200.       FontName        =   "Arial"
  201.       FontSize        =   8.25
  202.       FontStrikethru  =   0   'False
  203.       FontUnderline   =   0   'False
  204.       Height          =   255
  205.       Left            =   240
  206.       TabIndex        =   0
  207.       Top             =   600
  208.       Width           =   495
  209.    End
  210.    Begin Label Label1 
  211.       BackColor       =   &H00C0C0C0&
  212.       Caption         =   "You may choose any virtual key code for the three DBT Grid Edit Keys.  Only a few are presented here for purposes of demonstration.  Make certain that your Edit Key selections do not conflict with any of the Visual Basic <access keys> you are using."
  213.       FontBold        =   -1  'True
  214.       FontItalic      =   0   'False
  215.       FontName        =   "Arial"
  216.       FontSize        =   8.25
  217.       FontStrikethru  =   0   'False
  218.       FontUnderline   =   0   'False
  219.       Height          =   975
  220.       Left            =   120
  221.       TabIndex        =   14
  222.       Top             =   2280
  223.       Width           =   5775
  224.    End
  225. End
  226.  
  227. Sub Command1_Click ()
  228. SetEditKey 27
  229. Unload EditKeyForm
  230. End Sub
  231.  
  232. Sub Command10_Click ()
  233. SetEditKey 120
  234. Unload EditKeyForm
  235.  
  236. End Sub
  237.  
  238. Sub Command11_Click ()
  239. SetEditKey 121
  240. Unload EditKeyForm
  241.  
  242. End Sub
  243.  
  244. Sub Command12_Click ()
  245. SetEditKey 122
  246. Unload EditKeyForm
  247.  
  248. End Sub
  249.  
  250. Sub Command13_Click ()
  251. SetEditKey 123
  252. Unload EditKeyForm
  253.  
  254. End Sub
  255.  
  256. Sub Command14_Click ()
  257. SetEditKey 32
  258. Unload EditKeyForm
  259.  
  260. End Sub
  261.  
  262. Sub Command15_Click ()
  263. SetEditKey 13
  264. Unload EditKeyForm
  265.  
  266. End Sub
  267.  
  268. Sub Command2_Click ()
  269. SetEditKey 112
  270. Unload EditKeyForm
  271.  
  272. End Sub
  273.  
  274. Sub Command3_Click ()
  275. SetEditKey 113
  276. Unload EditKeyForm
  277.  
  278. End Sub
  279.  
  280. Sub Command4_Click ()
  281. SetEditKey 114
  282. Unload EditKeyForm
  283.  
  284. End Sub
  285.  
  286. Sub Command5_Click ()
  287. SetEditKey 115
  288. Unload EditKeyForm
  289.  
  290. End Sub
  291.  
  292. Sub Command6_Click ()
  293. SetEditKey 116
  294. Unload EditKeyForm
  295.  
  296. End Sub
  297.  
  298. Sub Command7_Click ()
  299. SetEditKey 117
  300. Unload EditKeyForm
  301.  
  302. End Sub
  303.  
  304. Sub Command8_Click ()
  305. SetEditKey 118
  306. Unload EditKeyForm
  307.  
  308. End Sub
  309.  
  310. Sub Command9_Click ()
  311. SetEditKey 119
  312. Unload EditKeyForm
  313.  
  314. End Sub
  315.  
  316. Sub SetEditKey (KeySelected As Integer)
  317.  
  318. Select Case EditKey
  319.     
  320.         Case 1  'AbortEditKey
  321.  
  322.             DemoForm.DBTGrid1.AbortEditKey = KeySelected
  323.  
  324.         Case 2  'BeginEditKey
  325.  
  326.             DemoForm.DBTGrid1.BeginEditKey = KeySelected
  327.  
  328.         Case 3  'EndEditKey
  329.  
  330.             DemoForm.DBTGrid1.EndEditKey = KeySelected
  331. End Select
  332.  
  333.         
  334. End Sub
  335.  
  336.