bool OnPostCreate()
{
+ // Right now for read-only DataBoxes the only reason we'd want to create an editor is for autoSize purposes, when using the default EditBox editor that supports it.
+ // ( A tweak for enum classes is in typeEdit.ec, as the base class editor invokes it )
if(type && (!readOnly || (autoSize && type._vTbl[__ecereVMethodID_class_OnEdit] == class(Instance)._vTbl[__ecereVMethodID_class_OnEdit])) &&
(type.type == normalClass || type.type == noHeadClass || data))
{
void OnRedraw(Surface surface)
{
- if(type && !editor)
+ if(type && (!editor || !editor.created))
{
char tempString[1024];
if(type._vTbl[__ecereVMethodID_class_OnDisplay] == class(Instance)._vTbl[__ecereVMethodID_class_OnDisplay])
return true;
}
};
- dropBox.AddField({ dataType = _class, userData = userData });
- dropBox.Create();
-
- for(item = enumeration.values.first; item; item = item.next)
+ // Read only DataBoxes don't really need the edition, but it will be invoked if autoSize is on because the base class OnEdit check succeeded and chained here,
+ // and it's thinking the editor is going to be an EditBox. We return an editor so the DataBox goes on with life.
+ if(!((DataBox)window).readOnly)
{
- DataRow row = dropBox.AddRow();
- row.SetData(null, (uint)item.data); //name);
- if(data && (int)item.data == *data)
- dropBox.currentRow = row;
+ dropBox.AddField({ dataType = _class, userData = userData });
+ dropBox.Create();
+
+ for(item = enumeration.values.first; item; item = item.next)
+ {
+ DataRow row = dropBox.AddRow();
+ row.SetData(null, (uint)item.data); //name);
+ if(data && (int)item.data == *data)
+ dropBox.currentRow = row;
+ }
}
return dropBox;
}
msgid "(Click to add a new %s...)"
msgstr "(Click to add a new %s...)"
-#: ./src/ers.ec:519
+#: ./src/ers.ec:517
msgid "All files"
msgstr "All files"
-#: ./src/ers.ec:30
+#: ./src/ers.ec:28
#: ./src/gui.ec:20
#: ./src/gui.ec:30
msgid "Arial"
msgstr "Arial"
-#: ./src/ers.ec:516
+#: ./src/ers.ec:514
msgid "Comma Separated Values Spreadsheet (*.csv)"
msgstr "Comma Separated Values Spreadsheet (*.csv)"
msgid "Error reading field"
msgstr "Error reading field"
+#: ./src/ers.ec:570
+msgid "Export as Spreadsheet (CSV)"
+msgstr "Export as Spreadsheet (CSV)"
+
#: ./src/EDB.ec:234
msgid "Invalid, corrupted or in use (%s) database file.\n"
msgstr "Invalid, corrupted or in use (%s) database file.\n"
msgid "New|id="
msgstr "New|id="
-#: ./src/ers.ec:17
+#: ./src/ers.ec:15
msgid "Please wait while the report is being generated..."
msgstr "Please wait while the report is being generated..."
msgid "Attach"
msgstr "Attach"
-#: ./src/designer/CodeEditor.ec:5152
-#: ./src/designer/CodeEditor.ec:5193
+#: ./src/designer/CodeEditor.ec:5153
+#: ./src/designer/CodeEditor.ec:5194
msgid "Attach %s"
msgstr "Attach %s"
#: ./src/dialogs/NewProjectDialog.ec:208
#: ./src/dialogs/NewProjectDialog.ec:526
#: ./src/dialogs/ProjectActiveConfig.ec:57
-#: ./src/designer/CodeEditor.ec:5224
+#: ./src/designer/CodeEditor.ec:5225
#: ./src/ProjectSettings.ec:172
msgid "Cancel"
msgstr "Cancel"
msgid "MemoryGuard"
msgstr "MemoryGuard"
-#: ./src/designer/CodeEditor.ec:5153
-#: ./src/designer/CodeEditor.ec:5195
+#: ./src/designer/CodeEditor.ec:5154
+#: ./src/designer/CodeEditor.ec:5196
msgid "Method is unused. Move method inside instance?"
msgstr "Method is unused. Move method inside instance?"
msgid "Name Conflict"
msgstr "Name Conflict"
-#: ./src/designer/CodeEditor.ec:5220
+#: ./src/designer/CodeEditor.ec:5221
msgid "Name detached method"
msgstr "Name detached method"
#: ./src/dialogs/NewProjectDialog.ec:34
#: ./src/dialogs/NewProjectDialog.ec:345
#: ./src/dialogs/ProjectActiveConfig.ec:39
-#: ./src/designer/CodeEditor.ec:5229
+#: ./src/designer/CodeEditor.ec:5230
#: ./src/about.ec:34
#: ./src/ProjectSettings.ec:211
msgid "OK"