VERSION 5.00 Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX" Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX" Begin VB.Form frmChart Caption = "Form1" ClientHeight = 3780 ClientLeft = 60 ClientTop = 345 ClientWidth = 4680 LinkTopic = "Form1" ScaleHeight = 3780 ScaleWidth = 4680 StartUpPosition = 3 'Windows Default Begin ComctlLib.StatusBar StatusBar1 Align = 2 'Align Bottom Height = 300 Left = 0 TabIndex = 8 Top = 3480 Width = 4680 _ExtentX = 8255 _ExtentY = 529 SimpleText = "" _Version = 327682 BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7} NumPanels = 1 BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7} Object.Tag = "" EndProperty EndProperty End Begin RichTextLib.RichTextBox RichTextBox1 Height = 735 Left = 120 TabIndex = 7 Top = 2400 Width = 4455 _ExtentX = 7858 _ExtentY = 1296 _Version = 393217 TextRTF = $"Uravnenie_Chart.frx":0000 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} Name = "MS Sans Serif" Size = 8.25 Charset = 204 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin VB.Frame Frame1 Caption = "Frame1" Height = 1695 Left = 2760 TabIndex = 2 Top = 120 Width = 1695 Begin VB.CheckBox Check1 Caption = "Использовать задержку" Height = 375 Left = 120 TabIndex = 6 Top = 1200 Width = 1455 End Begin VB.OptionButton Option2 Caption = "Всё сразу" Height = 255 Left = 120 TabIndex = 5 Top = 960 Width = 1335 End Begin VB.OptionButton Option1 Caption = "По шагам" Height = 195 Left = 120 TabIndex = 4 Top = 720 Width = 1335 End Begin VB.CommandButton Command1 Caption = "Начертить" Height = 375 Left = 240 TabIndex = 3 Top = 240 Width = 1215 End End Begin VB.Timer Timer1 Left = 2640 Top = 1920 End Begin VB.CommandButton Command2 Caption = "Отмена" Height = 375 Left = 3120 TabIndex = 1 Top = 1920 Width = 1215 End Begin VB.PictureBox Picture1 Height = 2175 Left = 120 ScaleHeight = 2115 ScaleWidth = 2355 TabIndex = 0 Top = 120 Width = 2415 End End Attribute VB_Name = "frmChart" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() 'Label1.Left = -100 'Label2.Left = -100 'Label1.Caption = "" 'Label2.Caption = "" 'miny = 0 'maxy = 0 'minx = 0 'maxx = 0 'For x = -2 * pi To 2 * pi Step 0.01 'y = F(x) 'If y < miny Then 'miny = y 'minx = x 'End If 'If y > maxy Then 'maxy = y 'maxx = x 'End If 'Next 'Picture1.Scale (-2 * pi, maxy + 1)-(2 * pi, miny - 1) 'For x = -2 * pi To 2 * pi Step 0.01 'y = F(x) 'Picture1.PSet (x, y), vbRed 'For i = 1 To 1000 'Next 'Next 'DrawWidth = 1 'Picture1.FillColor = vbGreen 'Picture1.FillStyle = 0 'Picture1.Circle (minx, miny), 0.1, vbGreen 'Picture1.Circle (maxx, maxy), 0.1, vbGreen 't1 = miny - 1 't2 = maxy + 1 'Picture1.Line (-2 * pi, 0)-(2 * pi, 0), vbBlue 'Picture1.Line (0, t1)-(0, t2), vbBlue 'Picture1.Line (minx, miny)-(minx, 0), vbBlue 'Picture1.Line (maxx, maxy)-(maxx, 0), vbBlue 't3 = 1827 / Picture1.Height 't4 = -0.1 'Label1.Left = minx 'Label1.Top = t3 'Label1.Caption = "(" & Format(minx, "0.00") & ";" & Format(miny, "0.00") & ")" 'Label2.Left = maxx 'Label2.Top = t4 'Label2.Caption = "(" & Format(maxx, "0.00") & ";" & Format(maxy, "0.00") & ")" End Sub Private Sub Picture1_DblClick() Picture1.Cls End Sub