ecere/gui/dialogs/FindDialog: Fixed autoCreate to default to false
[sdk] / ecere / src / gui / dialogs / FindDialog.ec
index d323e6c..ad78574 100644 (file)
@@ -10,10 +10,11 @@ public class FindDialog : Window
    borderStyle = fixed;
    background = formColor;
    minClientSize = { 400, 112 };
+   autoCreate = false;
 
 public:
    property EditBox editBox { set { editBox = value; } };
-   property char * searchString { set { findWhat.contents = value; } get { return findWhat.contents; } };
+   property const char * searchString { set { findWhat.contents = value; } get { return findWhat.contents; } };
    property bool wholeWord { set { wholeWord.checked = value; } get { return wholeWord.checked; } };
    property bool matchCase { set { matchCase.checked = value; } get { return matchCase.checked; } };
    property bool searchUp { set { (value ? searchUp : searchDown).checked = true; } get { return searchUp.checked; } };
@@ -30,7 +31,7 @@ private:
    {
       this, isCheckbox = true, text = $"Match case", position = { 10, 60 }, hotKey = altC
    };
-      
+
    Button searchUp
    {
       this, isRadio = true, text = $"Up", position = { 220, 50 }, hotKey = altU
@@ -52,7 +53,7 @@ private:
 
       bool NotifyClicked(Button control, int x, int y, Modifiers mods)
       {
-         char * searchString = findWhat.contents;
+         const char * searchString = findWhat.contents;
          bool searchUp = this.searchUp.checked;
          bool wholeWord = this.wholeWord.checked;
          bool matchCase = this.matchCase.checked;
@@ -71,7 +72,7 @@ private:
    Button cancel
    {
       this, text = $"Cancel", anchor = Anchor { right = 10, top = 45 }, size = { 80 }, hotKey = escape;
-      
+
       bool NotifyClicked(Button control, int x, int y, Modifiers mods)
       {
          findWhat.Activate();