diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 21:48:11 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-07 21:48:11 +0100 |
| commit | 829d1de43b5a9b39ace2f01eeecae5255f01ed1f (patch) | |
| tree | ca31b0f727b3c91adbab7a235bd1737ebc22a3ab /src/GraphicObjects/Slider.cs | |
| parent | 2937dc695a03c6359494a0f1a9224766b6d1aa04 (diff) | |
shape widget
scrollbar improvments
debug:perform mousemove event if mouseup had active widget.
Diffstat (limited to 'src/GraphicObjects/Slider.cs')
| -rw-r--r-- | src/GraphicObjects/Slider.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/GraphicObjects/Slider.cs b/src/GraphicObjects/Slider.cs index a664f4e7..2e4a5fef 100644 --- a/src/GraphicObjects/Slider.cs +++ b/src/GraphicObjects/Slider.cs @@ -83,7 +83,7 @@ namespace Crow public virtual int CursorSize { get { return _cursorSize; } set { - if (_cursorSize == value) + if (_cursorSize == value || value < 8) return; _cursorSize = value; RegisterForGraphicUpdate (); @@ -132,9 +132,14 @@ namespace Crow if (_orientation == Orientation.Horizontal) { pStart = r.TopLeft + new Point (_cursorSize / 2, r.Height / 2); pEnd = r.TopRight + new Point (-_cursorSize / 2, r.Height / 2); + pStart.Y += 0.5; + pEnd.Y += 0.5; } else { pStart = r.TopLeft + new Point (r.Width / 2, _cursorSize / 2); pEnd = r.BottomLeft + new Point (r.Width / 2,- _cursorSize / 2); + pStart.X += 0.5; + pEnd.X += 0.5; + } DrawGraduations (gr, pStart,pEnd); |