ecere/gui/ToolTips: Fixed modifying the CommonControl's toolTip property
authorJerome St-Louis <jerome@ecere.com>
Sun, 5 Feb 2012 06:27:04 +0000 (13:27 +0700)
committerJerome St-Louis <jerome@ecere.com>
Sun, 5 Feb 2012 06:27:04 +0000 (13:27 +0700)
ecere/src/gui/Window.ec

index d8a1025..f282be7 100644 (file)
@@ -9348,9 +9348,11 @@ public class CommonControl : Window
       property_category "Appearance"
       set
       {
+         if(created) CommonControl::OnDestroy();
          delete toolTip;
          toolTip = value ? ToolTip { tip = value; } : null;
          incref toolTip;
+         if(created) CommonControl::OnCreate();
       }
       get { return toolTip ? toolTip.tip : null; }
    }