Making the SpreadBox button click more obvious (ToolStripButtons do not have the button like feel of a click)

This commit is contained in:
Taha Afzal committed 2022-10-13 00:54:13 -04:00
1 parent 1c3fb8c192
commit e5a6ea80f0
1 file changed
+2 -2
@@ -257,11 +257,11 @@ namespace BCG {
// sets button's enter, leave and paint event (there is no border property for
// ToolstripButton, so we have to listen to the Paint event)
private void _set_button_common(ToolStripButton btn) {
btn.MouseEnter += (object sender, EventArgs e) => {
btn.MouseDown += (object sender, MouseEventArgs e) => {
btn.ForeColor = Color.Navy;
btn.BackColor = Color.LightGray;
};
btn.MouseLeave += (object sender, EventArgs e) => {
btn.MouseUp += (object sender, MouseEventArgs e) => {
btn.ForeColor = Color.Black;
btn.BackColor = _statustrip_main.BackColor;
};