Соединение мышью, панель линии и масштаба, ПКМ по полю - создать фигуру, поддержка высокого DPI
This commit is contained in:
parent
471418fb2a
commit
a08911920f
1 changed files with 497 additions and 215 deletions
|
|
@ -18,7 +18,6 @@ void __fastcall TfrmMenu::FormCreate(TObject *Sender)
|
|||
DrawIcons();
|
||||
}
|
||||
|
||||
// значки 32x32 для кнопок меню
|
||||
void TfrmMenu::DrawIcons()
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
|
|
@ -31,7 +30,6 @@ void TfrmMenu::DrawIcons()
|
|||
c->Pen->Width = 1;
|
||||
if (i == 0)
|
||||
{
|
||||
// поле 2x2 с одной пустой клеткой
|
||||
c->Pen->Color = (TColor)RGB(44, 62, 80);
|
||||
c->Brush->Color = (TColor)RGB(44, 62, 80);
|
||||
c->RoundRect(1, 1, 31, 31, 6, 6);
|
||||
|
|
@ -43,7 +41,6 @@ void TfrmMenu::DrawIcons()
|
|||
}
|
||||
if (i == 1)
|
||||
{
|
||||
// треугольник и круг
|
||||
c->Pen->Color = clBlack;
|
||||
c->Brush->Color = (TColor)RGB(255, 167, 38);
|
||||
TPoint p[3] = { TPoint(11, 3), TPoint(21, 21), TPoint(1, 21) };
|
||||
|
|
@ -53,7 +50,6 @@ void TfrmMenu::DrawIcons()
|
|||
}
|
||||
if (i == 2)
|
||||
{
|
||||
// значок "i"
|
||||
c->Pen->Color = (TColor)RGB(0, 137, 123);
|
||||
c->Brush->Color = (TColor)RGB(0, 137, 123);
|
||||
c->Ellipse(1, 1, 31, 31);
|
||||
|
|
|
|||
Loading…
Reference in a new issue