Adding value colour change in DebugVariablePanel when variable is forced
authorlaurent
Mon, 07 Dec 2009 20:42:55 +0100
changeset 473 9ee851841d28
parent 472 fecd4f6c01ed
child 474 a07115f79c27
Adding value colour change in DebugVariablePanel when variable is forced
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Mon Dec 07 13:38:16 2009 +0100
+++ b/PLCOpenEditor.py	Mon Dec 07 20:42:55 2009 +0100
@@ -3970,6 +3970,11 @@
         
         for row in range(self.GetNumberRows()):
             for col in range(self.GetNumberCols()):
+                if self.GetColLabelValue(col, False) == "Value":
+                    if self.IsForced(row):
+                        grid.SetCellTextColour(wx.RED, row, col)
+                    else:
+                        grid.SetCellTextColour(wx.BLACK, row, col)
                 grid.SetReadOnly(row, col, True)
                 
     def SetData(self, data):