controls/DebugVariablePanel/DebugVariableGraphicPanel.py
changeset 1209 953a8f14040a
parent 1207 fb9799a0c0f7
child 1212 b351d3a7917c
--- a/controls/DebugVariablePanel/DebugVariableGraphicPanel.py	Mon Jun 03 00:18:13 2013 +0200
+++ b/controls/DebugVariablePanel/DebugVariableGraphicPanel.py	Mon Jun 03 00:30:55 2013 +0200
@@ -51,7 +51,6 @@
         self.ParentWindow = None
     
     def OnDragOver(self, x, y, d):
-        self.ParentControl.OnMouseDragging(x, y)
         self.ParentWindow.RefreshHighlight(x, y)
         return wx.TextDropTarget.OnDragOver(self, x, y, d)
         
@@ -268,7 +267,7 @@
     
     def SetCursorTick(self, cursor_tick):
         self.CursorTick = cursor_tick
-        self.Fixed = True
+        self.Fixed = cursor_tick is not None
         self.UpdateCursorTick() 
     
     def MoveCursorTick(self, move):
@@ -629,6 +628,7 @@
         result = self.AddDataConsumer(iec_path.upper(), item)
         if result is not None or force:
             
+            self.Freeze()
             if item.IsNumVariable():
                 panel = DebugVariableGraphicViewer(self.GraphicsWindow, self, [item], GRAPH_PARALLEL)
                 if self.CursorTick is not None:
@@ -641,6 +641,7 @@
                 self.GraphicPanels.append(panel)
             self.ResetVariableNameMask()
             self.RefreshGraphicsSizer()
+            self.Thaw()
             self.ForceRefresh()
     
     def MoveValue(self, iec_path, idx = None):