📄 markerentry.h
字号:
this->label3->BackColor = System::Drawing::Color::Transparent;
this->label3->Location = System::Drawing::Point(192, 128);
this->label3->Name = S"label3";
this->label3->Size = System::Drawing::Size(56, 21);
this->label3->TabIndex = 7;
this->label3->Text = S"Marker 2";
this->label3->TextAlign = System::Drawing::ContentAlignment::BottomLeft;
//
// label4
//
this->label4->BackColor = System::Drawing::Color::Transparent;
this->label4->Location = System::Drawing::Point(192, 160);
this->label4->Name = S"label4";
this->label4->Size = System::Drawing::Size(56, 21);
this->label4->TabIndex = 8;
this->label4->Text = S"Marker 3";
this->label4->TextAlign = System::Drawing::ContentAlignment::BottomLeft;
//
// label5
//
this->label5->BackColor = System::Drawing::Color::Transparent;
this->label5->Location = System::Drawing::Point(192, 192);
this->label5->Name = S"label5";
this->label5->Size = System::Drawing::Size(56, 21);
this->label5->TabIndex = 9;
this->label5->Text = S"Marker 4";
this->label5->TextAlign = System::Drawing::ContentAlignment::BottomLeft;
//
// label6
//
this->label6->BackColor = System::Drawing::Color::Transparent;
this->label6->Location = System::Drawing::Point(192, 224);
this->label6->Name = S"label6";
this->label6->Size = System::Drawing::Size(56, 21);
this->label6->TabIndex = 10;
this->label6->Text = S"Marker 5";
this->label6->TextAlign = System::Drawing::ContentAlignment::BottomLeft;
//
// label7
//
this->label7->BackColor = System::Drawing::Color::Transparent;
this->label7->Location = System::Drawing::Point(44, 65);
this->label7->Name = S"label7";
this->label7->Size = System::Drawing::Size(116, 29);
this->label7->TabIndex = 11;
this->label7->Text = S"Frequency, Hz. ( 0 turns off Marker )";
this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// OKButton
//
this->OKButton->DialogResult = System::Windows::Forms::DialogResult::OK;
this->OKButton->FlatStyle = System::Windows::Forms::FlatStyle::System;
this->OKButton->Location = System::Drawing::Point(128, 272);
this->OKButton->Name = S"OKButton";
this->OKButton->Size = System::Drawing::Size(75, 23);
this->OKButton->TabIndex = 11;
this->OKButton->Text = S"OK";
this->OKButton->Click += new System::EventHandler(this, &MarkerEntry::OKButton_Click);
//
// CancelButton
//
this->CancelButton->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->CancelButton->FlatStyle = System::Windows::Forms::FlatStyle::System;
this->CancelButton->Location = System::Drawing::Point(232, 272);
this->CancelButton->Name = S"CancelButton";
this->CancelButton->Size = System::Drawing::Size(75, 23);
this->CancelButton->TabIndex = 12;
this->CancelButton->Text = S"Cancel";
//
// Marker1Time
//
this->Marker1Time->Location = System::Drawing::Point(272, 96);
this->Marker1Time->Name = S"Marker1Time";
this->Marker1Time->Size = System::Drawing::Size(112, 20);
this->Marker1Time->TabIndex = 6;
//
// Marker2Time
//
this->Marker2Time->Location = System::Drawing::Point(272, 128);
this->Marker2Time->Name = S"Marker2Time";
this->Marker2Time->Size = System::Drawing::Size(112, 20);
this->Marker2Time->TabIndex = 7;
//
// Marker3Time
//
this->Marker3Time->Location = System::Drawing::Point(272, 160);
this->Marker3Time->Name = S"Marker3Time";
this->Marker3Time->Size = System::Drawing::Size(112, 20);
this->Marker3Time->TabIndex = 8;
//
// Marker4Time
//
this->Marker4Time->Location = System::Drawing::Point(272, 192);
this->Marker4Time->Name = S"Marker4Time";
this->Marker4Time->Size = System::Drawing::Size(112, 20);
this->Marker4Time->TabIndex = 9;
//
// Marker5Time
//
this->Marker5Time->Location = System::Drawing::Point(272, 224);
this->Marker5Time->Name = S"Marker5Time";
this->Marker5Time->Size = System::Drawing::Size(112, 20);
this->Marker5Time->TabIndex = 10;
//
// label8
//
this->label8->BackColor = System::Drawing::Color::Transparent;
this->label8->Location = System::Drawing::Point(272, 64);
this->label8->Name = S"label8";
this->label8->Size = System::Drawing::Size(104, 29);
this->label8->TabIndex = 19;
this->label8->Text = S"Time, nSec. (0 turns off Marker)";
this->label8->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// groupBox1
//
this->groupBox1->BackColor = System::Drawing::Color::Transparent;
this->groupBox1->ForeColor = System::Drawing::SystemColors::ControlText;
this->groupBox1->Location = System::Drawing::Point(32, 40);
this->groupBox1->Name = S"groupBox1";
this->groupBox1->Size = System::Drawing::Size(144, 224);
this->groupBox1->TabIndex = 20;
this->groupBox1->TabStop = false;
this->groupBox1->Text = S"Rectangular / Polar";
//
// groupBox2
//
this->groupBox2->BackColor = System::Drawing::Color::Transparent;
this->groupBox2->ForeColor = System::Drawing::SystemColors::ControlText;
this->groupBox2->Location = System::Drawing::Point(256, 40);
this->groupBox2->Name = S"groupBox2";
this->groupBox2->Size = System::Drawing::Size(144, 224);
this->groupBox2->TabIndex = 21;
this->groupBox2->TabStop = false;
this->groupBox2->Text = S"TDR";
//
// MarkerEntry
//
this->AcceptButton = this->OKButton;
this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
this->BackColor = System::Drawing::Color::White;
this->BackgroundImage = (__try_cast<System::Drawing::Image* >(resources->GetObject(S"$this.BackgroundImage")));
this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
this->ClientSize = System::Drawing::Size(438, 316);
this->Controls->Add(this->label8);
this->Controls->Add(this->Marker5Time);
this->Controls->Add(this->Marker4Time);
this->Controls->Add(this->Marker3Time);
this->Controls->Add(this->Marker2Time);
this->Controls->Add(this->Marker1Time);
this->Controls->Add(this->CancelButton);
this->Controls->Add(this->OKButton);
this->Controls->Add(this->label7);
this->Controls->Add(this->label6);
this->Controls->Add(this->label5);
this->Controls->Add(this->label4);
this->Controls->Add(this->label3);
this->Controls->Add(this->label2);
this->Controls->Add(this->Marker5Freq);
this->Controls->Add(this->Marker4Freq);
this->Controls->Add(this->Marker3Freq);
this->Controls->Add(this->Marker2Freq);
this->Controls->Add(this->Marker1Freq);
this->Controls->Add(this->label1);
this->Controls->Add(this->groupBox1);
this->Controls->Add(this->groupBox2);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
this->Name = S"MarkerEntry";
this->Text = S"Marker Entry";
this->ResumeLayout(false);
this->PerformLayout();
}
/// Marker OK button click event handler
private: System::Void OKButton_Click(System::Object * sender, System::EventArgs * e)
{
try
{
Marker[0] = Convert::ToInt32(Marker1Freq->Text);
Marker[1] = Convert::ToInt32(Marker2Freq->Text);
Marker[2] = Convert::ToInt32(Marker3Freq->Text);
Marker[3] = Convert::ToInt32(Marker4Freq->Text);
Marker[4] = Convert::ToInt32(Marker5Freq->Text);
MarkerT[0] = Convert::ToSingle(Marker1Time->Text);
MarkerT[1] = Convert::ToSingle(Marker2Time->Text);
MarkerT[2] = Convert::ToSingle(Marker3Time->Text);
MarkerT[3] = Convert::ToSingle(Marker4Time->Text);
MarkerT[4] = Convert::ToSingle(Marker5Time->Text);
}
catch (Exception * pe)
{
MessageBox::Show(pe->Message, "Error");
}
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -