📄 label.cpp
字号:
// This software is in the public domain.// There are no restrictions on any sort of usage of this software.#include <gui/System/Mona/Forms/Label.h>#include <gui/System/Drawing/Font.h>using namespace System;using namespace System::Drawing;#define BASE Controlnamespace System { namespace Mona { namespace Forms{ Label::Label() { } Label::~Label() { } void Label::OnPaint() { _P<Graphics> g = this->CreateGraphics(); g->FillRectangle(this->get_BackColor(), 0, 0, this->get_Width(), this->get_Height()); g->DrawString(this->get_Text(), Control::get_DefaultFont(), this->get_ForeColor(), 0, 0); g->Dispose(); }}}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -