home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- BorderStyle = 3 'Fixed Dialog
- Caption = "P
- klad spolupr
- ce MicroTel-u a jin
- aplikace p
- es DDE "
- ClientHeight = 5250
- ClientLeft = 1410
- ClientTop = 2805
- ClientWidth = 9285
- Height = 5655
- Left = 1350
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5250
- ScaleWidth = 9285
- ShowInTaskbar = 0 'False
- Top = 2460
- Width = 9405
- Begin VB.CommandButton CmdGType
- Caption = "&Typ grafu"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7800
- TabIndex = 6
- Top = 2040
- Width = 1335
- End
- Begin VB.CommandButton CmdServ
- Caption = "S&lu
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7800
- TabIndex = 5
- Top = 1560
- Width = 1335
- End
- Begin VB.TextBox MTDDE
- Height = 375
- Left = 7920
- TabIndex = 4
- Text = "Text1"
- Top = 2640
- Visible = 0 'False
- Width = 1095
- End
- Begin VB.CommandButton CmdHard
- Caption = "&Hardware"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7800
- TabIndex = 3
- Top = 1080
- Width = 1335
- End
- Begin VB.CommandButton CmdSoft
- Caption = "&Software"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7800
- TabIndex = 2
- Top = 600
- Width = 1335
- End
- Begin VB.CommandButton CmdOK
- Cancel = -1 'True
- Caption = "&OK"
- Default = -1 'True
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 7800
- TabIndex = 1
- Top = 120
- Width = 1335
- End
- Begin GraphLib.Graph Graph1
- Height = 5055
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 7455
- _version = 65536
- _extentx = 13150
- _extenty = 8916
- _stockprops = 96
- borderstyle = 1
- graphtype = 4
- randomdata = 0
- colordata = 0
- extradata = 0
- extradata[] = 0
- fontfamily = 4
- fontsize = 4
- fontsize[0] = 120
- fontsize[1] = 150
- fontsize[2] = 100
- fontsize[3] = 100
- fontstyle = 4
- graphdata = 1
- graphdata[] = 5
- graphdata[0,0] = 0
- graphdata[0,1] = 0
- graphdata[0,2] = 0
- graphdata[0,3] = 0
- graphdata[0,4] = 0
- labeltext = 1
- legendtext = 0
- patterndata = 0
- symboldata = 0
- xposdata = 0
- xposdata[] = 0
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Dim Latin2 As String, Windows As String
- Private Sub CmdGType_Click()
- If Graph1.GraphType < 4 Then
- Graph1.GraphType = Graph1.GraphType + 1
- Graph1.GraphType = 1
- End If
- Graph1.DrawMode = 2
- End Sub
- Private Sub CmdHard_Click()
- MTDDE.LinkExecute "KEY H"
- MTDDE.LinkExecute "KEY ENTER"
- MTDDE.LinkExecute "MTREFRESH"
- MTDDE.LinkRequest
- Graph ("H")
- End Sub
- Private Sub CmdOK_Click()
- MTDDE.LinkExecute "KEY X"
- MTDDE.LinkExecute "KEY ENTER"
- MTDDE.LinkMode = 0
- Unload Me
- End Sub
- Private Sub CmdServ_Click()
- MTDDE.LinkExecute "KEY C"
- MTDDE.LinkExecute "KEY ENTER"
- MTDDE.LinkExecute "MTREFRESH"
- MTDDE.LinkRequest
- Graph ("C")
- End Sub
- Private Sub CmdSoft_Click()
- MTDDE.LinkExecute "KEY S"
- MTDDE.LinkExecute "KEY ENTER"
- MTDDE.LinkExecute "MTREFRESH"
- MTDDE.LinkRequest
- Graph ("S")
- End Sub
- Private Sub Form_Load()
- SetTables
- MTDDE.LinkTimeout = 150
- MTDDE.LinkTopic = "MICROTEL|MICROTEL"
- MTDDE.LinkItem = "MTSCREEN"
- MTDDE.LinkMode = 2
- MTDDE.LinkRequest
- MTDDE.LinkExecute "MTREFRESH"
- Graph ("S")
- End Sub
- Public Sub Graph(WaitChar As String)
- Dim I As Integer, J As Integer
- Dim City(1 To 5) As String
- Dim XX(1 To 5) As Long
- Dim Title As String
- For I = 1 To 10
- If Left$(GetLine(MTDDE, 23), 1) = WaitChar Then Exit For
- MTDDE.LinkExecute "MTREFRESH"
- For J = 1 To 1000
- Next
- MTDDE.LinkRequest
- Title = Conv(Trim$(GetLine(MTDDE, 4)))
- For I = 1 To 5
- City(I) = Conv(Trim$(Left$(GetLine(MTDDE, I + 9), 32)))
- XX(I) = Val(Right$(GetLine(MTDDE, I + 9), 32))
- Next I
- Graph1.GraphTitle = Title
- Graph1.ThisPoint = 1
- Graph1.AutoInc = 1
- For I = 1 To 5
- Graph1.GraphData = XX(I)
- Next I
- Graph1.ThisPoint = 1
- Graph1.AutoInc = 1
- For I = 1 To 5
- Graph1.LabelText = City(I)
- Next I
- Graph1.DrawMode = 2
- End Sub
- Public Function GetLine(Txt As String, LineNum As Integer) As String
- GetLine = Trim$(Mid$(Txt, (LineNum - 1) * 82 + 1, 80))
- End Function
- Public Sub SetTables()
- Latin2 = Chr$(230) + Chr$(155) + Chr$(166) + Chr$(231)
- Latin2 = Latin2 + Chr$(156) + Chr$(167) + Chr$(149)
- Latin2 = Latin2 + Chr$(150) + Chr$(232) + Chr$(181)
- Latin2 = Latin2 + Chr$(142) + Chr$(145) + Chr$(172)
- Latin2 = Latin2 + Chr$(144) + Chr$(183) + Chr$(214)
- Latin2 = Latin2 + Chr$(210) + Chr$(213) + Chr$(224)
- Latin2 = Latin2 + Chr$(226) + Chr$(153) + Chr$(252)
- Latin2 = Latin2 + Chr$(222) + Chr$(233) + Chr$(154)
- Latin2 = Latin2 + Chr$(237) + Chr$(234) + Chr$(160)
- Latin2 = Latin2 + Chr$(132) + Chr$(146) + Chr$(159)
- Latin2 = Latin2 + Chr$(130) + Chr$(216) + Chr$(161)
- Latin2 = Latin2 + Chr$(212) + Chr$(229) + Chr$(162)
- Latin2 = Latin2 + Chr$(147) + Chr$(148) + Chr$(253)
- Latin2 = Latin2 + Chr$(133) + Chr$(163) + Chr$(129)
- Latin2 = Latin2 + Chr$(236) + Chr$(245)
- Windows = Chr$(138) + Chr$(141) + Chr$(142) + Chr$(154)
- Windows = Windows + Chr$(157) + Chr$(158) + Chr$(188)
- Windows = Windows + Chr$(190) + Chr$(192) + Chr$(193)
- Windows = Windows + Chr$(196) + Chr$(197) + Chr$(200)
- Windows = Windows + Chr$(201) + Chr$(204) + Chr$(205)
- Windows = Windows + Chr$(207) + Chr$(210) + Chr$(211)
- Windows = Windows + Chr$(212) + Chr$(214) + Chr$(216)
- Windows = Windows + Chr$(217) + Chr$(218) + Chr$(220)
- Windows = Windows + Chr$(221) + Chr$(224) + Chr$(225)
- Windows = Windows + Chr$(228) + Chr$(229) + Chr$(232)
- Windows = Windows + Chr$(233) + Chr$(236) + Chr$(237)
- Windows = Windows + Chr$(239) + Chr$(242) + Chr$(243)
- Windows = Windows + Chr$(244) + Chr$(246) + Chr$(248)
- Windows = Windows + Chr$(249) + Chr$(250) + Chr$(252)
- Windows = Windows + Chr$(253) + Chr$(167)
- End Sub
- Public Function Conv(TmpStr As String) As String
- Dim I As Integer, J As Integer
- Dim RetStr As String, TmpChar As String
- RetStr = ""
- For I = 1 To Len(TmpStr$)
- If Asc(Mid$(TmpStr$, I, 1)) < 128 Then
- RetStr = RetStr + Mid$(TmpStr$, I, 1)
- Else
- TmpChar$ = Mid$(TmpStr$, I, 1)
- J = InStr(Latin2$, TmpChar$)
- If J > 0 Then
- TmpChar$ = Mid$(Windows$, J, 1)
- End If
- RetStr = RetStr + TmpChar
- End If
- Conv = RetStr
- End Function
-