| | |
| | | |
| | | if (UpButtonBounds.Contains(e.Location)) |
| | | { |
| | | Owner.Cursor = Cursors.Default; |
| | | Canvas.Cursor = Cursors.Default; |
| | | mustRedraw = !UpButtonSelected || DownButtonSelected || DownButtonPressed; |
| | | UpButtonSelected = true; |
| | | DownButtonSelected = false; |
| | |
| | | } |
| | | else if (DownButtonBounds.Contains(e.Location)) |
| | | { |
| | | Owner.Cursor = Cursors.Default; |
| | | Canvas.Cursor = Cursors.Default; |
| | | mustRedraw = !DownButtonSelected || UpButtonSelected || UpButtonPressed; |
| | | DownButtonSelected = true; |
| | | UpButtonSelected = false; |
| | |
| | | } |
| | | else if (TextBoxBounds.Contains(e.X, e.Y)) |
| | | { |
| | | Owner.Cursor = Cursors.IBeam; |
| | | Canvas.Cursor = Cursors.IBeam; |
| | | mustRedraw = DownButtonSelected || DownButtonPressed || UpButtonSelected || UpButtonPressed; |
| | | UpButtonSelected = false; |
| | | UpButtonPressed = false; |
| | |
| | | } |
| | | else |
| | | { |
| | | Owner.Cursor = Cursors.Default; |
| | | Canvas.Cursor = Cursors.Default; |
| | | } |
| | | |
| | | if (mustRedraw) |