home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 1999 October / PCpro_1999_10.ISO / Tools / dialer98 / Source / Anbieter.FRM (.txt) next >
Encoding:
Visual Basic Form  |  1998-04-07  |  9.3 KB  |  282 lines

  1. VERSION 5.00
  2. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "comctl32.ocx"
  3. Begin VB.Form Form3 
  4.    BorderStyle     =   3  'Fester Dialog
  5.    Caption         =   "Anbieterliste"
  6.    ClientHeight    =   4230
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   5370
  10.    Icon            =   "Anbieter.frx":0000
  11.    LinkTopic       =   "Form3"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   4230
  15.    ScaleWidth      =   5370
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   2  'Bildschirmmitte
  18.    Begin VB.CommandButton Command1 
  19.       Caption         =   "&OK"
  20.       Height          =   435
  21.       Index           =   0
  22.       Left            =   3840
  23.       TabIndex        =   10
  24.       Top             =   3720
  25.       Width           =   1455
  26.    End
  27.    Begin VB.CommandButton Command1 
  28.       Caption         =   "&Abbrechen"
  29.       Height          =   435
  30.       Index           =   1
  31.       Left            =   2340
  32.       TabIndex        =   11
  33.       Top             =   3720
  34.       Width           =   1455
  35.    End
  36.    Begin VB.Frame Frame2 
  37.       Caption         =   "Eintrag aufnehmen/bearbeiten"
  38.       Height          =   3555
  39.       Left            =   60
  40.       TabIndex        =   12
  41.       Top             =   60
  42.       Width           =   5232
  43.       Begin VB.PictureBox Picture3 
  44.          Height          =   615
  45.          Left            =   960
  46.          ScaleHeight     =   555
  47.          ScaleWidth      =   4095
  48.          TabIndex        =   20
  49.          Top             =   2820
  50.          Width           =   4155
  51.          Begin VB.CheckBox ChkWeite 
  52.             Caption         =   "Ausland"
  53.             Height          =   255
  54.             Index           =   3
  55.             Left            =   2820
  56.             TabIndex        =   9
  57.             Top             =   180
  58.             Width           =   1095
  59.          End
  60.          Begin VB.CheckBox ChkWeite 
  61.             Caption         =   "Fern"
  62.             Height          =   255
  63.             Index           =   2
  64.             Left            =   1440
  65.             TabIndex        =   8
  66.             Top             =   180
  67.             Value           =   1  'Aktiviert
  68.             Width           =   795
  69.          End
  70.          Begin VB.CheckBox ChkWeite 
  71.             Caption         =   "Nah"
  72.             Height          =   255
  73.             Index           =   1
  74.             Left            =   180
  75.             TabIndex        =   7
  76.             Top             =   180
  77.             Width           =   795
  78.          End
  79.       End
  80.       Begin VB.PictureBox Picture2 
  81.          Height          =   615
  82.          Left            =   960
  83.          ScaleHeight     =   555
  84.          ScaleWidth      =   4095
  85.          TabIndex        =   19
  86.          Top             =   1380
  87.          Width           =   4155
  88.          Begin VB.OptionButton OptTage 
  89.             Caption         =   "immer"
  90.             Height          =   255
  91.             Index           =   3
  92.             Left            =   2820
  93.             TabIndex        =   5
  94.             Top             =   180
  95.             Width           =   915
  96.          End
  97.          Begin VB.OptionButton OptTage 
  98.             Caption         =   "Sa - So"
  99.             Height          =   255
  100.             Index           =   2
  101.             Left            =   1440
  102.             TabIndex        =   4
  103.             Top             =   180
  104.             Width           =   915
  105.          End
  106.          Begin VB.OptionButton OptTage 
  107.             Caption         =   "Mo - Fr"
  108.             Height          =   255
  109.             Index           =   1
  110.             Left            =   180
  111.             TabIndex        =   3
  112.             Top             =   180
  113.             Value           =   -1  'True
  114.             Width           =   915
  115.          End
  116.       End
  117.       Begin VB.PictureBox Picture1 
  118.          Height          =   615
  119.          Left            =   960
  120.          ScaleHeight     =   555
  121.          ScaleWidth      =   4095
  122.          TabIndex        =   16
  123.          Top             =   2100
  124.          Width           =   4155
  125.          Begin ComctlLib.Slider TimeSlider 
  126.             Height          =   405
  127.             Left            =   840
  128.             TabIndex        =   6
  129.             ToolTipText     =   "Zuerst Startzeit einstellen, dann gleichzeitig [Strg] gedr
  130. ckt halten ..."
  131.             Top             =   60
  132.             Width           =   3255
  133.             _ExtentX        =   5741
  134.             _ExtentY        =   714
  135.             _Version        =   327682
  136.             LargeChange     =   4
  137.             Max             =   24
  138.             SelectRange     =   -1  'True
  139.          End
  140.          Begin VB.Label TimeLbl 
  141.             AutoSize        =   -1  'True
  142.             Caption         =   "..."
  143.             Height          =   390
  144.             Left            =   60
  145.             TabIndex        =   17
  146.             Top             =   180
  147.             Width           =   765
  148.             WordWrap        =   -1  'True
  149.          End
  150.       End
  151.       Begin VB.TextBox Text1 
  152.          Height          =   360
  153.          Index           =   1
  154.          Left            =   960
  155.          TabIndex        =   2
  156.          Top             =   900
  157.          Width           =   4155
  158.       End
  159.       Begin VB.TextBox Text1 
  160.          Height          =   360
  161.          Index           =   0
  162.          Left            =   960
  163.          TabIndex        =   1
  164.          Top             =   420
  165.          Width           =   4155
  166.       End
  167.       Begin VB.Label Label1 
  168.          AutoSize        =   -1  'True
  169.          Caption         =   "Typ des Anrufs:"
  170.          Height          =   390
  171.          Index           =   4
  172.          Left            =   120
  173.          TabIndex        =   0
  174.          Top             =   2940
  175.          Width           =   735
  176.          WordWrap        =   -1  'True
  177.       End
  178.       Begin VB.Label Label1 
  179.          AutoSize        =   -1  'True
  180.          Caption         =   "Zeitraum: (Stunden)"
  181.          Height          =   390
  182.          Index           =   3
  183.          Left            =   120
  184.          TabIndex        =   18
  185.          Top             =   2220
  186.          Width           =   750
  187.          WordWrap        =   -1  'True
  188.       End
  189.       Begin VB.Label Label1 
  190.          AutoSize        =   -1  'True
  191.          Caption         =   "Zeitraum: (Tage)"
  192.          Height          =   390
  193.          Index           =   2
  194.          Left            =   120
  195.          TabIndex        =   15
  196.          Top             =   1500
  197.          Width           =   705
  198.          WordWrap        =   -1  'True
  199.       End
  200.       Begin VB.Label Label1 
  201.          AutoSize        =   -1  'True
  202.          Caption         =   "Netz- nummer:"
  203.          Height          =   390
  204.          Index           =   1
  205.          Left            =   120
  206.          TabIndex        =   14
  207.          Top             =   900
  208.          Width           =   660
  209.          WordWrap        =   -1  'True
  210.       End
  211.       Begin VB.Label Label1 
  212.          AutoSize        =   -1  'True
  213.          Caption         =   "Name:"
  214.          Height          =   195
  215.          Index           =   0
  216.          Left            =   120
  217.          TabIndex        =   13
  218.          Top             =   480
  219.          Width           =   465
  220.       End
  221.    End
  222. Attribute VB_Name = "Form3"
  223. Attribute VB_GlobalNameSpace = False
  224. Attribute VB_Creatable = False
  225. Attribute VB_PredeclaredId = True
  226. Attribute VB_Exposed = False
  227. Option Explicit
  228. Dim SelActive As Boolean
  229.  Sub Command1_Click(Index As Integer)
  230.     If Index = 0 Then 'OK geklickt
  231.         If Not ThisIsANewEntry Then DeleteCurrentProviderEntry
  232.         'keine leer-eingaben erlauben
  233.         If (Text1(0).Text <> "") And (Text1(1).Text <> "") Then
  234.             AddToTelcoList Trim(Text1(0).Text), Trim(Text1(1).Text), _
  235.                 -OptTage(3).Value Or -OptTage(1).Value, _
  236.                 -OptTage(3).Value Or -OptTage(2).Value, _
  237.                 TimeSliderVon, TimeSliderBis, _
  238.                 Sgn(ChkWeite(1).Value), Sgn(ChkWeite(2).Value), Sgn(ChkWeite(3).Value)
  239.         End If
  240.         SaveProviderFile
  241.     End If
  242.     Unload Me
  243. End Sub
  244. Private Sub Form_Load()
  245. Dim s As String
  246.     TimeSlider.Value = TimeSliderBis
  247.     TimeSlider.SelStart = TimeSliderVon
  248.     TimeSlider.SelLength = TimeSliderBis - TimeSliderVon
  249.     VonBisNum2Str TimeSliderVon, TimeSliderBis, s
  250.     TimeLbl.Caption = s
  251. End Sub
  252.  Sub Text1_KeyPress(Index As Integer, K As Integer)
  253.     If K = 13 Then
  254.         K = 0
  255.         If Index = 0 Then Text1(1).SetFocus
  256.         If Index = 1 Then Command1(0).SetFocus   '
  257.  -> was anders vorher
  258.     End If
  259. End Sub
  260.  Sub TimeSlider_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  261.     SelActive = Shift <> 0
  262. End Sub
  263.  Sub TimeSlider_scroll()
  264.  Dim s As String
  265.     If SelActive Then
  266.         TimeSliderBis = TimeSlider.Value
  267.         If TimeSliderVon > TimeSliderBis Then
  268.             TimeSlider.SelStart = TimeSliderBis
  269.             TimeSliderVon = TimeSliderBis
  270.         Else
  271.             TimeSlider.SelStart = TimeSliderVon
  272.         End If
  273.     Else
  274.         TimeSliderVon = TimeSlider.Value
  275.         TimeSlider.SelStart = TimeSliderVon
  276.         TimeSliderBis = TimeSliderVon
  277.     End If
  278.     TimeSlider.SelLength = TimeSliderBis - TimeSliderVon
  279.     VonBisNum2Str TimeSliderVon, TimeSliderBis, s
  280.     TimeLbl.Caption = s
  281. End Sub
  282.