📄 form1.h
字号:
#pragma once
namespace GDIPlus3DText
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Drawing::Drawing2D;
/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public __gc class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::Button * btnArticleList;
private: System::Windows::Forms::PictureBox * picText;
private: System::Windows::Forms::Button * btnContactMe;
private: System::Windows::Forms::Button * btnClose;
private: System::Windows::Forms::GroupBox * groupBox1;
private: System::Windows::Forms::NumericUpDown * spnFontSize;
private: System::Windows::Forms::TextBox * txtToDisplay;
private: System::Windows::Forms::Label * label1;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Button * btnDisplayText;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::NumericUpDown * spnDepth;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::ComboBox * cbxTextColour;
private: System::Windows::Forms::ComboBox * cbxShadowColour;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::RadioButton * rbtnEngraved;
private: System::Windows::Forms::RadioButton * rbtnShadow;
private: System::Windows::Forms::RadioButton * rbtnBlock;
private: System::Windows::Forms::RadioButton * rbtnEmboss;
public:
__value enum TextStyle
{
Shadow,
Block,
Emboss,
Engrave
};
protected:
String* textToDisplay;
TextStyle style;
Decimal fontSize;
Decimal shadowDepth;
Color textColour;
Color shadowColour;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container * components;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->btnArticleList = new System::Windows::Forms::Button();
this->picText = new System::Windows::Forms::PictureBox();
this->btnContactMe = new System::Windows::Forms::Button();
this->btnClose = new System::Windows::Forms::Button();
this->groupBox1 = new System::Windows::Forms::GroupBox();
this->rbtnEngraved = new System::Windows::Forms::RadioButton();
this->rbtnShadow = new System::Windows::Forms::RadioButton();
this->rbtnBlock = new System::Windows::Forms::RadioButton();
this->rbtnEmboss = new System::Windows::Forms::RadioButton();
this->cbxShadowColour = new System::Windows::Forms::ComboBox();
this->label4 = new System::Windows::Forms::Label();
this->cbxTextColour = new System::Windows::Forms::ComboBox();
this->spnFontSize = new System::Windows::Forms::NumericUpDown();
this->txtToDisplay = new System::Windows::Forms::TextBox();
this->label1 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->spnDepth = new System::Windows::Forms::NumericUpDown();
this->label3 = new System::Windows::Forms::Label();
this->label5 = new System::Windows::Forms::Label();
this->btnDisplayText = new System::Windows::Forms::Button();
this->groupBox1->SuspendLayout();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->spnFontSize))->BeginInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->spnDepth))->BeginInit();
this->SuspendLayout();
//
// btnArticleList
//
this->btnArticleList->Location = System::Drawing::Point(344, 72);
this->btnArticleList->Name = S"btnArticleList";
this->btnArticleList->Size = System::Drawing::Size(80, 23);
this->btnArticleList->TabIndex = 3;
this->btnArticleList->Text = S"Article &List";
this->btnArticleList->Click += new System::EventHandler(this, btnArticleList_Click);
//
// picText
//
this->picText->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
this->picText->Location = System::Drawing::Point(8, 184);
this->picText->Name = S"picText";
this->picText->Size = System::Drawing::Size(320, 144);
this->picText->TabIndex = 10;
this->picText->TabStop = false;
this->picText->Paint += new System::Windows::Forms::PaintEventHandler(this, picText_Paint);
//
// btnContactMe
//
this->btnContactMe->Location = System::Drawing::Point(344, 48);
this->btnContactMe->Name = S"btnContactMe";
this->btnContactMe->Size = System::Drawing::Size(80, 23);
this->btnContactMe->TabIndex = 2;
this->btnContactMe->Text = S"Contact &Me";
this->btnContactMe->Click += new System::EventHandler(this, btnContactMe_Click);
//
// btnClose
//
this->btnClose->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->btnClose->Location = System::Drawing::Point(344, 16);
this->btnClose->Name = S"btnClose";
this->btnClose->Size = System::Drawing::Size(80, 23);
this->btnClose->TabIndex = 4;
this->btnClose->Text = S"Cl&ose";
this->btnClose->Click += new System::EventHandler(this, btnClose_Click);
//
// groupBox1
//
this->groupBox1->Controls->Add(this->rbtnEngraved);
this->groupBox1->Controls->Add(this->rbtnShadow);
this->groupBox1->Controls->Add(this->rbtnBlock);
this->groupBox1->Controls->Add(this->rbtnEmboss);
this->groupBox1->Controls->Add(this->cbxShadowColour);
this->groupBox1->Controls->Add(this->label4);
this->groupBox1->Controls->Add(this->cbxTextColour);
this->groupBox1->Controls->Add(this->spnFontSize);
this->groupBox1->Controls->Add(this->txtToDisplay);
this->groupBox1->Controls->Add(this->label1);
this->groupBox1->Controls->Add(this->label2);
this->groupBox1->Controls->Add(this->spnDepth);
this->groupBox1->Controls->Add(this->label3);
this->groupBox1->Controls->Add(this->label5);
this->groupBox1->Location = System::Drawing::Point(8, 8);
this->groupBox1->Name = S"groupBox1";
this->groupBox1->Size = System::Drawing::Size(320, 168);
this->groupBox1->TabIndex = 0;
this->groupBox1->TabStop = false;
this->groupBox1->Text = S"Display Settings";
//
// rbtnEngraved
//
this->rbtnEngraved->Location = System::Drawing::Point(232, 56);
this->rbtnEngraved->Name = S"rbtnEngraved";
this->rbtnEngraved->Size = System::Drawing::Size(72, 24);
this->rbtnEngraved->TabIndex = 5;
this->rbtnEngraved->Text = S"En&grave";
this->rbtnEngraved->CheckedChanged += new System::EventHandler(this, rbtnEngraved_CheckedChanged);
//
// rbtnShadow
//
this->rbtnShadow->Checked = true;
this->rbtnShadow->Location = System::Drawing::Point(16, 56);
this->rbtnShadow->Name = S"rbtnShadow";
this->rbtnShadow->Size = System::Drawing::Size(64, 24);
this->rbtnShadow->TabIndex = 2;
this->rbtnShadow->TabStop = true;
this->rbtnShadow->Text = S"&Shadow";
this->rbtnShadow->CheckedChanged += new System::EventHandler(this, rbtnShadow_CheckedChanged);
//
// rbtnBlock
//
this->rbtnBlock->Location = System::Drawing::Point(88, 56);
this->rbtnBlock->Name = S"rbtnBlock";
this->rbtnBlock->Size = System::Drawing::Size(64, 24);
this->rbtnBlock->TabIndex = 3;
this->rbtnBlock->Text = S"&Block";
this->rbtnBlock->CheckedChanged += new System::EventHandler(this, rbtnBlock_CheckedChanged);
//
// rbtnEmboss
//
this->rbtnEmboss->Location = System::Drawing::Point(152, 56);
this->rbtnEmboss->Name = S"rbtnEmboss";
this->rbtnEmboss->Size = System::Drawing::Size(72, 24);
this->rbtnEmboss->TabIndex = 4;
this->rbtnEmboss->Text = S"&Emboss";
this->rbtnEmboss->CheckedChanged += new System::EventHandler(this, rbtnEmboss_CheckedChanged);
//
// cbxShadowColour
//
this->cbxShadowColour->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->cbxShadowColour->Location = System::Drawing::Point(168, 136);
this->cbxShadowColour->Name = S"cbxShadowColour";
this->cbxShadowColour->Size = System::Drawing::Size(136, 21);
this->cbxShadowColour->TabIndex = 13;
//
// label4
//
this->label4->Location = System::Drawing::Point(168, 120);
this->label4->Name = S"label4";
this->label4->Size = System::Drawing::Size(136, 16);
this->label4->TabIndex = 12;
this->label4->Text = S"Shadow colour:";
this->label4->TextAlign = System::Drawing::ContentAlignment::BottomLeft;
//
// cbxTextColour
//
this->cbxTextColour->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->cbxTextColour->Location = System::Drawing::Point(16, 136);
this->cbxTextColour->Name = S"cbxTextColour";
this->cbxTextColour->Size = System::Drawing::Size(128, 21);
this->cbxTextColour->TabIndex = 11;
//
// spnFontSize
//
this->spnFontSize->Location = System::Drawing::Point(80, 88);
this->spnFontSize->Name = S"spnFontSize";
this->spnFontSize->Size = System::Drawing::Size(48, 20);
this->spnFontSize->TabIndex = 7;
System::Int32 __mcTemp__1[] = new System::Int32[4];
__mcTemp__1[0] = 40;
__mcTemp__1[1] = 0;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -