aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/ScrollBar.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-07 21:48:11 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-07 21:48:11 +0100
commit829d1de43b5a9b39ace2f01eeecae5255f01ed1f (patch)
treeca31b0f727b3c91adbab7a235bd1737ebc22a3ab /src/GraphicObjects/ScrollBar.cs
parent2937dc695a03c6359494a0f1a9224766b6d1aa04 (diff)
shape widget
scrollbar improvments debug:perform mousemove event if mouseup had active widget.
Diffstat (limited to 'src/GraphicObjects/ScrollBar.cs')
-rw-r--r--src/GraphicObjects/ScrollBar.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/GraphicObjects/ScrollBar.cs b/src/GraphicObjects/ScrollBar.cs
index 31ff7acf..5dac20e1 100644
--- a/src/GraphicObjects/ScrollBar.cs
+++ b/src/GraphicObjects/ScrollBar.cs
@@ -38,6 +38,7 @@ namespace Crow
//TODO:could be replaced by a template for a Slider
Orientation _orientation;
+ int _cursorSize;
#region CTOR
protected ScrollBar () : base(){}
@@ -56,6 +57,17 @@ namespace Crow
RegisterForGraphicUpdate ();
}
}
+ [XmlAttributeAttribute()][DefaultValue(20)]
+ public virtual int CursorSize {
+ get { return _cursorSize; }
+ set {
+ if (_cursorSize == value)
+ return;
+ _cursorSize = value;
+ RegisterForGraphicUpdate ();
+ NotifyValueChanged ("CursorSize", _cursorSize);
+ }
+ }
public void onScrollBack (object sender, MouseButtonEventArgs e)
{
Value -= SmallIncrement;