aboutsummaryrefslogtreecommitdiff
path: root/Histacom2.Engine/Template/DropDownOverlay.cs
blob: 4d364d6e7a592124b505b3b3945a8b0892801a63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Histacom2.Engine.Template
{
    public partial class DropDownOverlay : Form
    {
        public DropDownOverlay()
        {
            InitializeComponent();
        }

        private void outline_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.DrawRectangle(Pens.Black, 0, 0, outline.Width - 1, outline.Height - 1); // Draws a 1 pixel border around the dropdown's drop area!
            if (SaveSystem.currentTheme != null) outline.BackColor = SaveSystem.currentTheme.threeDObjectsColor;
        }
    }
}