<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
- <DefineConstants>DEBUG_UPDATE0;DEBUG_FOCUS0;DEBUG_LAYOUTING0;TRACE0;DEBUG;MEASURE_TIME;DEBUG_LOAD0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0</DefineConstants>
+ <DefineConstants>DEBUG_UPDATE0;DEBUG_FOCUS;DEBUG_DISPOSE;DEBUG_LAYOUTING0;TRACE0;DEBUG;MEASURE_TIME;DEBUG_LOAD0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0</DefineConstants>
<Optimize>false</Optimize>
<OutputPath>$(SolutionDir)build\Debug</OutputPath>
</PropertyGroup>
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
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) {
}
}
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);
public override void onMouseUp (object sender, MouseButtonEventArgs e)
{
base.onMouseUp (sender, e);
-
+ if (!(this.HasFocus || _selectable))
+ return;
if (!SelectionInProgress)
return;
public override void onMouseDoubleClick (object sender, MouseButtonEventArgs e)
{
base.onMouseDoubleClick (sender, e);
-
+ if (!(this.HasFocus || _selectable))
+ return;
+
GotoWordStart ();
SelBegin = CurrentPosition;
GotoWordEnd ();
/// <summary>Set visible state of widget to false and remove if from the graphic tree</summary>
public void RemoveWidget(GraphicObject g)
{
- if (g.Contains(HoverWidget)) {
- while (HoverWidget != g.LogicalParent) {
- HoverWidget.onMouseLeave (HoverWidget, null);
- HoverWidget = HoverWidget.LogicalParent as GraphicObject;
- }
- }
+// if (g.Contains(HoverWidget)) {
+// while (HoverWidget != g.focusParent) {
+// HoverWidget.onMouseLeave (HoverWidget, null);
+// HoverWidget = HoverWidget.focusParent;
+// }
+// }
lock (UpdateMutex) {
RegisterClip (g.ScreenCoordinates (g.LastPaintedSlot));
GraphicTree.Remove (g);
{
Mouse.DisableBit (button);
MouseButtonEventArgs e = new MouseButtonEventArgs ((Crow.MouseButton)button) { Mouse = Mouse };
-
if (_activeWidget == null)
return false;