aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/GraphicObject.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 07:14:00 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-18 07:14:00 +0100
commit632bd63db115383da4216ee31ff0e9d39081e87b (patch)
tree8d30dd2b85b2f23167634406829ccfe0b22d1faa /src/GraphicObjects/GraphicObject.cs
parentce8c0dabfc960be91c36434ccd3ef7cdfe99fd74 (diff)
add some debug msg, prevent mouse evt on label not selectable
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
-rw-r--r--src/GraphicObjects/GraphicObject.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index 15730905..f0e8a04d 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -1553,6 +1553,9 @@ namespace Crow
MouseMove.Raise (this, e);
}
public virtual void onMouseDown(object sender, MouseButtonEventArgs e){
+ #if DEBUG_FOCUS
+ Debug.WriteLine("MOUSE DOWN => " + this.ToString());
+ #endif
if (CurrentInterface.eligibleForDoubleClick == this && CurrentInterface.clickTimer.ElapsedMilliseconds < Interface.DoubleClick)
onMouseDoubleClick (this, e);
else
@@ -1578,6 +1581,10 @@ namespace Crow
MouseDown.Raise (this, e);
}
public virtual void onMouseUp(object sender, MouseButtonEventArgs e){
+ #if DEBUG_FOCUS
+ Debug.WriteLine("MOUSE UP => " + this.ToString());
+ #endif
+
if (IsDragged){
bool dropOK = false;
if (CurrentInterface.HoverWidget!=null) {
@@ -1604,12 +1611,18 @@ namespace Crow
}
}
public virtual void onMouseClick(object sender, MouseButtonEventArgs e){
+ #if DEBUG_FOCUS
+ Debug.WriteLine("CLICK => " + this.ToString());
+ #endif
GraphicObject p = focusParent;
if (p != null)
p.onMouseClick(sender,e);
MouseClick.Raise (this, e);
}
public virtual void onMouseDoubleClick(object sender, MouseButtonEventArgs e){
+ #if DEBUG_FOCUS
+ Debug.WriteLine("DOUBLE CLICK => " + this.ToString());
+ #endif
GraphicObject p = focusParent;
if (p != null)
p.onMouseDoubleClick(sender,e);