📄 form1.h
字号:
this->lineToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::lineToolStripMenuItem_Click);
//
// rectangleToolStripMenuItem
//
this->rectangleToolStripMenuItem->Name = L"rectangleToolStripMenuItem";
this->rectangleToolStripMenuItem->Size = System::Drawing::Size(133, 22);
this->rectangleToolStripMenuItem->Text = L"&Rectangle";
this->rectangleToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::rectangleToolStripMenuItem_Click);
//
// circleToolStripMenuItem
//
this->circleToolStripMenuItem->Name = L"circleToolStripMenuItem";
this->circleToolStripMenuItem->Size = System::Drawing::Size(133, 22);
this->circleToolStripMenuItem->Text = L"&Circle";
this->circleToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::circleToolStripMenuItem_Click);
//
// curveToolStripMenuItem
//
this->curveToolStripMenuItem->Name = L"curveToolStripMenuItem";
this->curveToolStripMenuItem->Size = System::Drawing::Size(133, 22);
this->curveToolStripMenuItem->Text = L"Cur&ve";
this->curveToolStripMenuItem->DoubleClick += gcnew System::EventHandler(this, &Form1::curveToolStripMenuItem_DoubleClick);
//
// textToolStripMenuItem
//
this->textToolStripMenuItem->Name = L"textToolStripMenuItem";
this->textToolStripMenuItem->Size = System::Drawing::Size(133, 22);
this->textToolStripMenuItem->Text = L"&Text";
this->textToolStripMenuItem->ToolTipText = L"Create text elements";
this->textToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::textToolStripMenuItem_Click);
//
// colorToolStripMenuItem
//
this->colorToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->blackToolStripMenuItem,
this->redToolStripMenuItem, this->greenToolStripMenuItem, this->blueToolStripMenuItem});
this->colorToolStripMenuItem->Name = L"colorToolStripMenuItem";
this->colorToolStripMenuItem->Size = System::Drawing::Size(44, 20);
this->colorToolStripMenuItem->Text = L"&Color";
this->colorToolStripMenuItem->DropDownOpening += gcnew System::EventHandler(this, &Form1::colorToolStripMenuItem_DropDownOpening);
//
// blackToolStripMenuItem
//
this->blackToolStripMenuItem->Checked = true;
this->blackToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
this->blackToolStripMenuItem->Name = L"blackToolStripMenuItem";
this->blackToolStripMenuItem->Size = System::Drawing::Size(114, 22);
this->blackToolStripMenuItem->Text = L"Blac&k";
this->blackToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::blackToolStripMenuItem_Click);
//
// redToolStripMenuItem
//
this->redToolStripMenuItem->Name = L"redToolStripMenuItem";
this->redToolStripMenuItem->Size = System::Drawing::Size(114, 22);
this->redToolStripMenuItem->Text = L"&Red";
this->redToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::redToolStripMenuItem_Click);
//
// greenToolStripMenuItem
//
this->greenToolStripMenuItem->Name = L"greenToolStripMenuItem";
this->greenToolStripMenuItem->Size = System::Drawing::Size(114, 22);
this->greenToolStripMenuItem->Text = L"&Green";
this->greenToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::greenToolStripMenuItem_Click);
//
// blueToolStripMenuItem
//
this->blueToolStripMenuItem->Name = L"blueToolStripMenuItem";
this->blueToolStripMenuItem->Size = System::Drawing::Size(114, 22);
this->blueToolStripMenuItem->Text = L"&Blue";
this->blueToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::blueToolStripMenuItem_Click);
//
// helpToolStripMenuItem
//
this->helpToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(5) {this->contentsToolStripMenuItem,
this->indexToolStripMenuItem, this->searchToolStripMenuItem, this->toolStripSeparator5, this->aboutToolStripMenuItem});
this->helpToolStripMenuItem->Name = L"helpToolStripMenuItem";
this->helpToolStripMenuItem->Size = System::Drawing::Size(40, 20);
this->helpToolStripMenuItem->Text = L"&Help";
//
// contentsToolStripMenuItem
//
this->contentsToolStripMenuItem->Name = L"contentsToolStripMenuItem";
this->contentsToolStripMenuItem->Size = System::Drawing::Size(129, 22);
this->contentsToolStripMenuItem->Text = L"&Contents";
//
// indexToolStripMenuItem
//
this->indexToolStripMenuItem->Name = L"indexToolStripMenuItem";
this->indexToolStripMenuItem->Size = System::Drawing::Size(129, 22);
this->indexToolStripMenuItem->Text = L"&Index";
//
// searchToolStripMenuItem
//
this->searchToolStripMenuItem->Name = L"searchToolStripMenuItem";
this->searchToolStripMenuItem->Size = System::Drawing::Size(129, 22);
this->searchToolStripMenuItem->Text = L"&Search";
//
// toolStripSeparator5
//
this->toolStripSeparator5->Name = L"toolStripSeparator5";
this->toolStripSeparator5->Size = System::Drawing::Size(126, 6);
//
// aboutToolStripMenuItem
//
this->aboutToolStripMenuItem->Name = L"aboutToolStripMenuItem";
this->aboutToolStripMenuItem->Size = System::Drawing::Size(129, 22);
this->aboutToolStripMenuItem->Text = L"&About...";
//
// toolStrip1
//
this->toolStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(21) {this->newToolStripButton,
this->openToolStripButton, this->saveToolStripButton, this->printToolStripButton, this->toolStripSeparator6, this->toolStripLineButton,
this->rectangleToolStripButton, this->circleToolStripButton, this->curveToolStripButton, this->textToolStripButton, this->toolStripSeparator8,
this->blackToolStripButton, this->redToolStripButton, this->greenToolStripButton, this->blueToolStripButton, this->toolStripSeparator9,
this->penWidthButton, this->toolStripSeparator7, this->fontToolStripButton, this->toolStripSeparator10, this->penWidthComboBox});
this->toolStrip1->Location = System::Drawing::Point(0, 24);
this->toolStrip1->Name = L"toolStrip1";
this->toolStrip1->Size = System::Drawing::Size(506, 25);
this->toolStrip1->TabIndex = 1;
this->toolStrip1->Text = L"toolStrip1";
//
// newToolStripButton
//
this->newToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->newToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"newToolStripButton.Image")));
this->newToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->newToolStripButton->Name = L"newToolStripButton";
this->newToolStripButton->Size = System::Drawing::Size(23, 22);
this->newToolStripButton->Text = L"&New";
//
// openToolStripButton
//
this->openToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->openToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"openToolStripButton.Image")));
this->openToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->openToolStripButton->Name = L"openToolStripButton";
this->openToolStripButton->Size = System::Drawing::Size(23, 22);
this->openToolStripButton->Text = L"&Open";
this->openToolStripButton->Click += gcnew System::EventHandler(this, &Form1::openToolStripMenuItem_Click);
//
// saveToolStripButton
//
this->saveToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->saveToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"saveToolStripButton.Image")));
this->saveToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->saveToolStripButton->Name = L"saveToolStripButton";
this->saveToolStripButton->Size = System::Drawing::Size(23, 22);
this->saveToolStripButton->Text = L"&Save";
this->saveToolStripButton->Click += gcnew System::EventHandler(this, &Form1::saveToolStripMenuItem_Click);
//
// printToolStripButton
//
this->printToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->printToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"printToolStripButton.Image")));
this->printToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->printToolStripButton->Name = L"printToolStripButton";
this->printToolStripButton->Size = System::Drawing::Size(23, 22);
this->printToolStripButton->Text = L"&Print";
this->printToolStripButton->Click += gcnew System::EventHandler(this, &Form1::printToolStripMenuItem_Click);
//
// toolStripSeparator6
//
this->toolStripSeparator6->Name = L"toolStripSeparator6";
this->toolStripSeparator6->Size = System::Drawing::Size(6, 25);
//
// toolStripLineButton
//
this->toolStripLineButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->toolStripLineButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripLineButton.Image")));
this->toolStripLineButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->toolStripLineButton->Name = L"toolStripLineButton";
this->toolStripLineButton->Size = System::Drawing::Size(23, 22);
this->toolStripLineButton->Text = L"toolStripButton1";
this->toolStripLineButton->ToolTipText = L"Draw lines";
this->toolStripLineButton->Click += gcnew System::EventHandler(this, &Form1::lineToolStripMenuItem_Click);
//
// rectangleToolStripButton
//
this->rectangleToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->rectangleToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"rectangleToolStripButton.Image")));
this->rectangleToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->rectangleToolStripButton->Name = L"rectangleToolStripButton";
this->rectangleToolStripButton->Size = System::Drawing::Size(23, 22);
this->rectangleToolStripButton->Text = L"toolStripButton1";
this->rectangleToolStripButton->ToolTipText = L"Draw rectangles";
this->rectangleToolStripButton->Click += gcnew System::EventHandler(this, &Form1::rectangleToolStripMenuItem_Click);
//
// circleToolStripButton
//
this->circleToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->circleToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"circleToolStripButton.Image")));
this->circleToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->circleToolStripButton->Name = L"circleToolStripButton";
this->circleToolStripButton->Size = System::Drawing::Size(23, 22);
this->circleToolStripButton->Text = L"toolStripButton1";
this->circleToolStripButton->ToolTipText = L"Draw circles";
this->circleToolStripButton->Click += gcnew System::EventHandler(this, &Form1::circleToolStripMenuItem_Click);
//
// curveToolStripButton
//
this->curveToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->curveToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"curveToolStripButton.Image")));
this->curveToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->curveToolStripButton->Name = L"curveToolStripButton";
this->curveToolStripButton->Size = System::Drawing::Size(23, 22);
this->curveToolStripButton->Text = L"toolStripButton1";
this->curveToolStripButton->ToolTipText = L"Draw curves";
this->curveToolStripButton->Click += gcnew System::EventHandler(this, &Form1::curveToolStripMenuItem_DoubleClick);
//
// textToolStripButton
//
this->textToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->textToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"textToolStripButton.Image")));
this->textToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->textToolStripButton->Name = L"textToolStripButton";
this->textToolStripButton->Size = System::Drawing::Size(23, 22);
this->textToolStripButton->Text = L"toolStripButton1";
this->textToolStripButton->ToolTipText = L"Create text elements";
this->textToolStripButton->Click += gcnew System::EventHandler(this, &Form1::textToolStripMenuItem_Click);
//
// toolStripSeparator8
//
this->toolStripSeparator8->Name = L"toolStripSeparator8";
this->toolStripSeparator8->Size = System::Drawing::Size(6, 25);
//
// blackToolStripButton
//
this->blackToolStripButton->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->blackToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"blackToolStripButton.Image")));
this->blackToolStripButton->ImageTransparentColor = System::Drawing::Color::Magenta;
this->blackToolStripButton->Name = L"blackToolStripButton";
this->blackToolStripButton->Size = System::Drawing::Size(23, 22);
this->blackToolStripButton->Text = L"toolStripButton1";
this->blackToolStripButton->ToolTipText = L"Draw in black";
this->blackToolStripButton->Click += gcnew System::EventHandler(this, &Form1::blackToolStripMenuItem_Click);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -