label.cpp

来自「MONA是为数不多的C++语言编写的一个很小的操作系统」· C++ 代码 · 共 30 行

CPP
30
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?