home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / European_P2098721222008.psc / Form1.frm < prev    next >
Text File  |  2008-01-22  |  12KB  |  397 lines

  1. VERSION 5.00
  2. Begin VB.Form frmPump 
  3.    BorderStyle     =   0  'Kein
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   12540
  6.    ClientLeft      =   0
  7.    ClientTop       =   0
  8.    ClientWidth     =   9060
  9.    LinkTopic       =   "Form1"
  10.    MouseIcon       =   "Form1.frx":0000
  11.    MousePointer    =   99  'Benutzerdefiniert
  12.    Picture         =   "Form1.frx":030A
  13.    ScaleHeight     =   836
  14.    ScaleMode       =   3  'Pixel
  15.    ScaleWidth      =   604
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   2  'Bildschirmmitte
  18.    Begin VB.CheckBox ckPump 
  19.       BackColor       =   &H00008000&
  20.       Height          =   270
  21.       Left            =   7950
  22.       Style           =   1  'Grafisch
  23.       TabIndex        =   13
  24.       ToolTipText     =   "Pump"
  25.       Top             =   2715
  26.       Width           =   405
  27.    End
  28.    Begin VB.Timer tmrTick 
  29.       Enabled         =   0   'False
  30.       Interval        =   10
  31.       Left            =   3825
  32.       Top             =   6795
  33.    End
  34.    Begin VB.PictureBox picDP 
  35.       Appearance      =   0  '2D
  36.       BackColor       =   &H00000080&
  37.       BorderStyle     =   0  'Kein
  38.       ForeColor       =   &H80000008&
  39.       Height          =   60
  40.       Index           =   2
  41.       Left            =   4320
  42.       ScaleHeight     =   60
  43.       ScaleWidth      =   45
  44.       TabIndex        =   7
  45.       Top             =   4395
  46.       Width           =   45
  47.    End
  48.    Begin VB.PictureBox picDP 
  49.       Appearance      =   0  '2D
  50.       BackColor       =   &H80000005&
  51.       BorderStyle     =   0  'Kein
  52.       ForeColor       =   &H80000008&
  53.       Height          =   75
  54.       Index           =   1
  55.       Left            =   4305
  56.       ScaleHeight     =   75
  57.       ScaleWidth      =   45
  58.       TabIndex        =   6
  59.       Top             =   3420
  60.       Width           =   45
  61.    End
  62.    Begin VB.PictureBox picDP 
  63.       Appearance      =   0  '2D
  64.       BackColor       =   &H80000005&
  65.       BorderStyle     =   0  'Kein
  66.       ForeColor       =   &H80000008&
  67.       Height          =   75
  68.       Index           =   0
  69.       Left            =   4620
  70.       ScaleHeight     =   75
  71.       ScaleWidth      =   45
  72.       TabIndex        =   5
  73.       Top             =   2565
  74.       Width           =   45
  75.    End
  76.    Begin VB.VScrollBar scrPrice 
  77.       Height          =   360
  78.       Left            =   3345
  79.       Max             =   0
  80.       Min             =   32767
  81.       TabIndex        =   4
  82.       Top             =   4185
  83.       Value           =   1239
  84.       Width           =   240
  85.    End
  86.    Begin Projekt1.Counter cntPrice 
  87.       Height          =   300
  88.       Left            =   3705
  89.       TabIndex        =   3
  90.       Top             =   4215
  91.       Width           =   855
  92.       _ExtentX        =   1508
  93.       _ExtentY        =   529
  94.       ForeColor       =   128
  95.       Value           =   1239
  96.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  97.          Name            =   "Arial"
  98.          Size            =   8.25
  99.          Charset         =   0
  100.          Weight          =   700
  101.          Underline       =   0   'False
  102.          Italic          =   0   'False
  103.          Strikethrough   =   0   'False
  104.       EndProperty
  105.       Digits          =   4
  106.    End
  107.    Begin Projekt1.Counter cntLiters 
  108.       Height          =   525
  109.       Left            =   3375
  110.       TabIndex        =   1
  111.       Top             =   2205
  112.       Width           =   1590
  113.       _ExtentX        =   2805
  114.       _ExtentY        =   926
  115.       BackColor       =   8421504
  116.       ForeColor       =   16777215
  117.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  118.          Name            =   "Arial"
  119.          Size            =   18
  120.          Charset         =   0
  121.          Weight          =   700
  122.          Underline       =   0   'False
  123.          Italic          =   0   'False
  124.          Strikethrough   =   0   'False
  125.       EndProperty
  126.       Digits          =   5
  127.    End
  128.    Begin VB.CommandButton btExit 
  129.       Caption         =   "Exit"
  130.       BeginProperty Font 
  131.          Name            =   "MS Sans Serif"
  132.          Size            =   9.75
  133.          Charset         =   0
  134.          Weight          =   700
  135.          Underline       =   0   'False
  136.          Italic          =   0   'False
  137.          Strikethrough   =   0   'False
  138.       EndProperty
  139.       Height          =   780
  140.       Left            =   3330
  141.       TabIndex        =   0
  142.       Top             =   10905
  143.       Width           =   1485
  144.    End
  145.    Begin Projekt1.Counter cntEuro 
  146.       Height          =   525
  147.       Left            =   3375
  148.       TabIndex        =   2
  149.       Top             =   3075
  150.       Width           =   1590
  151.       _ExtentX        =   2805
  152.       _ExtentY        =   926
  153.       BackColor       =   8421504
  154.       ForeColor       =   16777215
  155.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  156.          Name            =   "Arial"
  157.          Size            =   18
  158.          Charset         =   0
  159.          Weight          =   700
  160.          Underline       =   0   'False
  161.          Italic          =   0   'False
  162.          Strikethrough   =   0   'False
  163.       EndProperty
  164.       Digits          =   5
  165.    End
  166.    Begin VB.Label lbl 
  167.       Appearance      =   0  '2D
  168.       AutoSize        =   -1  'True
  169.       BackColor       =   &H80000005&
  170.       BackStyle       =   0  'Transparent
  171.       Caption         =   "Super Plus"
  172.       BeginProperty Font 
  173.          Name            =   "Arial"
  174.          Size            =   18
  175.          Charset         =   0
  176.          Weight          =   400
  177.          Underline       =   0   'False
  178.          Italic          =   0   'False
  179.          Strikethrough   =   0   'False
  180.       EndProperty
  181.       ForeColor       =   &H00808080&
  182.       Height          =   405
  183.       Index           =   5
  184.       Left            =   3240
  185.       TabIndex        =   14
  186.       Top             =   1605
  187.       Width           =   1800
  188.    End
  189.    Begin VB.Label lbl 
  190.       Appearance      =   0  '2D
  191.       AutoSize        =   -1  'True
  192.       BackColor       =   &H80000005&
  193.       BackStyle       =   0  'Transparent
  194.       Caption         =   "Cent"
  195.       BeginProperty Font 
  196.          Name            =   "Arial"
  197.          Size            =   8.25
  198.          Charset         =   0
  199.          Weight          =   400
  200.          Underline       =   0   'False
  201.          Italic          =   0   'False
  202.          Strikethrough   =   0   'False
  203.       EndProperty
  204.       ForeColor       =   &H00000000&
  205.       Height          =   210
  206.       Index           =   3
  207.       Left            =   4650
  208.       TabIndex        =   12
  209.       Top             =   4245
  210.       Width           =   330
  211.    End
  212.    Begin VB.Label lbl 
  213.       Alignment       =   2  'Zentriert
  214.       AutoSize        =   -1  'True
  215.       BackColor       =   &H00000000&
  216.       BackStyle       =   0  'Transparent
  217.       Caption         =   "UMGPET"
  218.       BeginProperty Font 
  219.          Name            =   "Britannic Bold"
  220.          Size            =   36
  221.          Charset         =   0
  222.          Weight          =   700
  223.          Underline       =   0   'False
  224.          Italic          =   0   'False
  225.          Strikethrough   =   0   'False
  226.       EndProperty
  227.       ForeColor       =   &H00808080&
  228.       Height          =   795
  229.       Index           =   4
  230.       Left            =   2805
  231.       TabIndex        =   11
  232.       Top             =   345
  233.       Width           =   2625
  234.    End
  235.    Begin VB.Label lbl 
  236.       Appearance      =   0  '2D
  237.       AutoSize        =   -1  'True
  238.       BackColor       =   &H80000005&
  239.       BackStyle       =   0  'Transparent
  240.       Caption         =   "Preis per Liter"
  241.       BeginProperty Font 
  242.          Name            =   "Arial"
  243.          Size            =   8.25
  244.          Charset         =   0
  245.          Weight          =   400
  246.          Underline       =   0   'False
  247.          Italic          =   0   'False
  248.          Strikethrough   =   0   'False
  249.       EndProperty
  250.       ForeColor       =   &H00000000&
  251.       Height          =   210
  252.       Index           =   2
  253.       Left            =   3645
  254.       TabIndex        =   10
  255.       Top             =   3975
  256.       Width           =   1005
  257.    End
  258.    Begin VB.Label lbl 
  259.       Appearance      =   0  '2D
  260.       BackColor       =   &H80000005&
  261.       BackStyle       =   0  'Transparent
  262.       Caption         =   "Euro"
  263.       BeginProperty Font 
  264.          Name            =   "Arial"
  265.          Size            =   18
  266.          Charset         =   0
  267.          Weight          =   400
  268.          Underline       =   0   'False
  269.          Italic          =   0   'False
  270.          Strikethrough   =   0   'False
  271.       EndProperty
  272.       ForeColor       =   &H00000000&
  273.       Height          =   405
  274.       Index           =   1
  275.       Left            =   5100
  276.       TabIndex        =   9
  277.       Top             =   3135
  278.       Width           =   765
  279.    End
  280.    Begin VB.Label lbl 
  281.       Appearance      =   0  '2D
  282.       BackColor       =   &H80000005&
  283.       BackStyle       =   0  'Transparent
  284.       Caption         =   "Liter"
  285.       BeginProperty Font 
  286.          Name            =   "Arial"
  287.          Size            =   18
  288.          Charset         =   0
  289.          Weight          =   400
  290.          Underline       =   0   'False
  291.          Italic          =   0   'False
  292.          Strikethrough   =   0   'False
  293.       EndProperty
  294.       ForeColor       =   &H00000000&
  295.       Height          =   405
  296.       Index           =   0
  297.       Left            =   5115
  298.       TabIndex        =   8
  299.       Top             =   2265
  300.       Width           =   690
  301.    End
  302.    Begin VB.Label lbl 
  303.       Alignment       =   2  'Zentriert
  304.       AutoSize        =   -1  'True
  305.       BackColor       =   &H00000000&
  306.       BackStyle       =   0  'Transparent
  307.       Caption         =   "UMGPET"
  308.       BeginProperty Font 
  309.          Name            =   "Britannic Bold"
  310.          Size            =   36
  311.          Charset         =   0
  312.          Weight          =   700
  313.          Underline       =   0   'False
  314.          Italic          =   0   'False
  315.          Strikethrough   =   0   'False
  316.       EndProperty
  317.       ForeColor       =   &H00E0E0E0&
  318.       Height          =   795
  319.       Index           =   6
  320.       Left            =   2775
  321.       TabIndex        =   15
  322.       Top             =   315
  323.       Width           =   2625
  324.    End
  325. End
  326. Attribute VB_Name = "frmPump"
  327. Attribute VB_GlobalNameSpace = False
  328. Attribute VB_Creatable = False
  329. Attribute VB_PredeclaredId = True
  330. Attribute VB_Exposed = False
  331. Option Explicit
  332.  
  333. Private Trimmer     As cTrimmer
  334. Private LastState   As Boolean
  335.  
  336. Private Sub btExit_Click()
  337.  
  338.     Unload Me
  339.  
  340. End Sub
  341.  
  342. Private Sub ckPump_Click()
  343.  
  344.     If LastState Then
  345.         scrPrice_Change
  346.     End If
  347.     LastState = (ckPump = vbUnchecked)
  348.     tmrTick.Enabled = Not LastState
  349.     scrPrice.Enabled = LastState
  350.  
  351. End Sub
  352.  
  353. Private Sub Form_Load()
  354.  
  355.     Set Trimmer = New cTrimmer
  356.     Trimmer.TrimForm Me
  357.  
  358. End Sub
  359.  
  360. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  361.  
  362.     If Button = vbLeftButton Then
  363.         Trimmer.GrabForm Me
  364.     End If
  365.  
  366. End Sub
  367.  
  368. Private Sub lbl_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  369.  
  370.     Form_MouseDown Button, Shift, X, Y
  371.  
  372. End Sub
  373.  
  374. Private Sub scrPrice_Change()
  375.  
  376.     cntPrice = scrPrice
  377.     cntLiters = 0
  378.     cntEuro = 0
  379.  
  380. End Sub
  381.  
  382. Private Sub scrPrice_Scroll()
  383.  
  384.     scrPrice_Change
  385.  
  386. End Sub
  387.  
  388. Private Sub tmrTick_Timer()
  389.  
  390.     cntEuro = cntEuro + 0.1
  391.     cntLiters = cntEuro / scrPrice * 100
  392.  
  393. End Sub
  394.  
  395. ':) Ulli's VB Code Formatter V2.23.17 (2008-Jan-22 22:40)  Decl: 4  Code: 56  Total: 60 Lines
  396. ':) CommentOnly: 2 (3,3%)  Commented: 0 (0%)  Empty: 23 (38,3%)  Max Logic Depth: 2
  397.