setfrm.frm
上传用户:zhuahui520
上传日期:2007-05-21
资源大小:347k
文件大小:7k
源码类别:

其他智力游戏

开发平台:

Java

  1. VERSION 5.00
  2. Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
  3. Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
  4. Begin VB.Form setfrm 
  5.    BorderStyle     =   3  'Fixed Dialog
  6.    Caption         =   "设置"
  7.    ClientHeight    =   3660
  8.    ClientLeft      =   45
  9.    ClientTop       =   330
  10.    ClientWidth     =   4665
  11.    Icon            =   "setfrm.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   3660
  16.    ScaleWidth      =   4665
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   3  '窗口缺省
  19.    Begin VB.Frame Frame1 
  20.       Height          =   3615
  21.       Left            =   0
  22.       TabIndex        =   0
  23.       Top             =   0
  24.       Width           =   4575
  25.       Begin VB.CommandButton cmdOkCancel 
  26.          Cancel          =   -1  'True
  27.          Caption         =   "取消(&C)"
  28.          Height          =   375
  29.          Index           =   1
  30.          Left            =   3000
  31.          TabIndex        =   10
  32.          Top             =   3000
  33.          Width           =   975
  34.       End
  35.       Begin VB.CommandButton cmdOkCancel 
  36.          Caption         =   "确定(&E)"
  37.          Default         =   -1  'True
  38.          Height          =   375
  39.          Index           =   0
  40.          Left            =   1680
  41.          TabIndex        =   9
  42.          Top             =   3000
  43.          Width           =   975
  44.       End
  45.       Begin TabDlg.SSTab SSTab1 
  46.          Height          =   2415
  47.          Left            =   240
  48.          TabIndex        =   1
  49.          Top             =   240
  50.          Width           =   3975
  51.          _ExtentX        =   7011
  52.          _ExtentY        =   4260
  53.          _Version        =   393216
  54.          Style           =   1
  55.          Tabs            =   2
  56.          TabHeight       =   520
  57.          TabCaption(0)   =   "设置借书册数"
  58.          TabPicture(0)   =   "setfrm.frx":0442
  59.          Tab(0).ControlEnabled=   -1  'True
  60.          Tab(0).Control(0)=   "Label1"
  61.          Tab(0).Control(0).Enabled=   0   'False
  62.          Tab(0).Control(1)=   "txtLentNum"
  63.          Tab(0).Control(1).Enabled=   0   'False
  64.          Tab(0).Control(2)=   "UpDown1"
  65.          Tab(0).Control(2).Enabled=   0   'False
  66.          Tab(0).Control(3)=   "Frame2"
  67.          Tab(0).Control(3).Enabled=   0   'False
  68.          Tab(0).ControlCount=   4
  69.          TabCaption(1)   =   "设置超出金额"
  70.          TabPicture(1)   =   "setfrm.frx":045E
  71.          Tab(1).ControlEnabled=   0   'False
  72.          Tab(1).Control(0)=   "Frame3"
  73.          Tab(1).Control(1)=   "txtCost"
  74.          Tab(1).Control(2)=   "Label2"
  75.          Tab(1).ControlCount=   3
  76.          Begin VB.Frame Frame3 
  77.             Height          =   135
  78.             Left            =   -74400
  79.             TabIndex        =   8
  80.             Top             =   720
  81.             Width           =   2895
  82.          End
  83.          Begin VB.TextBox txtCost 
  84.             BeginProperty Font 
  85.                Name            =   "宋体"
  86.                Size            =   10.5
  87.                Charset         =   134
  88.                Weight          =   400
  89.                Underline       =   0   'False
  90.                Italic          =   0   'False
  91.                Strikethrough   =   0   'False
  92.             EndProperty
  93.             Height          =   315
  94.             Left            =   -72600
  95.             TabIndex        =   7
  96.             Text            =   "Text1"
  97.             Top             =   1320
  98.             Width           =   1095
  99.          End
  100.          Begin VB.Frame Frame2 
  101.             Height          =   135
  102.             Left            =   600
  103.             TabIndex        =   5
  104.             Top             =   720
  105.             Width           =   3135
  106.          End
  107.          Begin MSComCtl2.UpDown UpDown1 
  108.             Height          =   330
  109.             Left            =   3000
  110.             TabIndex        =   4
  111.             Top             =   1320
  112.             Width           =   225
  113.             _ExtentX        =   397
  114.             _ExtentY        =   582
  115.             _Version        =   393216
  116.             BuddyControl    =   "txtLentNum"
  117.             BuddyDispid     =   196614
  118.             OrigLeft        =   2640
  119.             OrigTop         =   1080
  120.             OrigRight       =   2865
  121.             OrigBottom      =   1455
  122.             Max             =   100
  123.             SyncBuddy       =   -1  'True
  124.             BuddyProperty   =   0
  125.             Enabled         =   -1  'True
  126.          End
  127.          Begin VB.TextBox txtLentNum 
  128.             BeginProperty Font 
  129.                Name            =   "宋体"
  130.                Size            =   10.5
  131.                Charset         =   134
  132.                Weight          =   400
  133.                Underline       =   0   'False
  134.                Italic          =   0   'False
  135.                Strikethrough   =   0   'False
  136.             EndProperty
  137.             Height          =   330
  138.             Left            =   2160
  139.             TabIndex        =   3
  140.             Text            =   "Text1"
  141.             Top             =   1320
  142.             Width           =   870
  143.          End
  144.          Begin VB.Label Label2 
  145.             AutoSize        =   -1  'True
  146.             Caption         =   "超出一天罚款金额"
  147.             BeginProperty Font 
  148.                Name            =   "宋体"
  149.                Size            =   10.5
  150.                Charset         =   134
  151.                Weight          =   400
  152.                Underline       =   0   'False
  153.                Italic          =   0   'False
  154.                Strikethrough   =   0   'False
  155.             EndProperty
  156.             ForeColor       =   &H00FF0000&
  157.             Height          =   210
  158.             Left            =   -74400
  159.             TabIndex        =   6
  160.             Top             =   1320
  161.             Width           =   1680
  162.          End
  163.          Begin VB.Label Label1 
  164.             AutoSize        =   -1  'True
  165.             Caption         =   "每人借书册数"
  166.             BeginProperty Font 
  167.                Name            =   "宋体"
  168.                Size            =   10.5
  169.                Charset         =   134
  170.                Weight          =   400
  171.                Underline       =   0   'False
  172.                Italic          =   0   'False
  173.                Strikethrough   =   0   'False
  174.             EndProperty
  175.             ForeColor       =   &H00FF0000&
  176.             Height          =   210
  177.             Left            =   600
  178.             TabIndex        =   2
  179.             Top             =   1320
  180.             Width           =   1260
  181.          End
  182.       End
  183.    End
  184. End
  185. Attribute VB_Name = "setfrm"
  186. Attribute VB_GlobalNameSpace = False
  187. Attribute VB_Creatable = False
  188. Attribute VB_PredeclaredId = True
  189. Attribute VB_Exposed = False
  190. Private Type MSet
  191.     BookNum As Integer
  192.     BookCost As Single
  193. End Type
  194. Dim SetFlag As MSet
  195. Private Sub cmdOkCancel_Click(Index As Integer)
  196. Select Case Index
  197.     Case 0
  198.         BookNum = Val(txtLentNum)
  199.         FaCost = Val(txtCost)
  200.         SetFlag.BookNum = Val(txtLentNum.Text)
  201.         SetFlag.BookCost = Val(txtCost.Text)
  202.         Put #1, 1, SetFlag
  203.         Unload Me
  204.     Case 1
  205.         Unload Me
  206. End Select
  207. End Sub
  208. Private Sub Form_Load()
  209. Open "DatabaseSet.Dat" For Random As #2 Len = Len(SetFlag)
  210. Get #1, 1, SetFlag
  211. txtLentNum = SetFlag.BookNum
  212. txtCost = SetFlag.BookCost
  213. End Sub
  214. Private Sub Form_Resize()
  215. MsgBox "请确认图书归还以后在修改这些设置", 0 + 48, "警告"
  216. End Sub
  217. Private Sub Form_Unload(Cancel As Integer)
  218. Close #2
  219. End Sub