diff --git a/components/ideintf/languages/objinspstrconsts.ca.po b/components/ideintf/languages/objinspstrconsts.ca.po index ce406cc48e..3ab2c5c49d 100644 --- a/components/ideintf/languages/objinspstrconsts.ca.po +++ b/components/ideintf/languages/objinspstrconsts.ca.po @@ -1643,6 +1643,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem #, fuzzy msgctxt "objinspstrconsts.sccslvedtnewitem" diff --git a/components/ideintf/languages/objinspstrconsts.cs.po b/components/ideintf/languages/objinspstrconsts.cs.po index c45e4e0737..8d5c1a07ec 100644 --- a/components/ideintf/languages/objinspstrconsts.cs.po +++ b/components/ideintf/languages/objinspstrconsts.cs.po @@ -1588,6 +1588,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Stavový index:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.de.po b/components/ideintf/languages/objinspstrconsts.de.po index c3439797fc..99538d1bb9 100644 --- a/components/ideintf/languages/objinspstrconsts.de.po +++ b/components/ideintf/languages/objinspstrconsts.de.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2024-02-21 23:55+0100\n" +"PO-Revision-Date: 2024-03-18 21:06+0100\n" "Last-Translator: Swen Heinig \n" "Language-Team: Deutsch \n" "Language: de\n" @@ -1586,6 +1586,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Status-Index:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "Listeneinträge können zur Entwurfszeit nicht bearbeitet werden, wenn OwnerData aktiviert ist. Verwenden Sie dafür stattdessen Items.Count und das OnData-Ereignis." + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" @@ -1871,4 +1875,3 @@ msgstr "Tab nach links bewegen" #: objinspstrconsts.tccesmovetabright msgid "Move tab right" msgstr "Tab nach rechts bewegen" - diff --git a/components/ideintf/languages/objinspstrconsts.es.po b/components/ideintf/languages/objinspstrconsts.es.po index 8b35120103..9a54b04be3 100644 --- a/components/ideintf/languages/objinspstrconsts.es.po +++ b/components/ideintf/languages/objinspstrconsts.es.po @@ -1589,6 +1589,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Índice de estado:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.fi.po b/components/ideintf/languages/objinspstrconsts.fi.po index 33c9cfe4e3..41884f0c39 100644 --- a/components/ideintf/languages/objinspstrconsts.fi.po +++ b/components/ideintf/languages/objinspstrconsts.fi.po @@ -1587,6 +1587,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Tila osoitin:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.fr.po b/components/ideintf/languages/objinspstrconsts.fr.po index f4701d8ded..b463515dc6 100644 --- a/components/ideintf/languages/objinspstrconsts.fr.po +++ b/components/ideintf/languages/objinspstrconsts.fr.po @@ -1584,6 +1584,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "État de l'index :" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.he.po b/components/ideintf/languages/objinspstrconsts.he.po index 34aee1745e..06c6758fc4 100644 --- a/components/ideintf/languages/objinspstrconsts.he.po +++ b/components/ideintf/languages/objinspstrconsts.he.po @@ -1650,6 +1650,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "אינדקס מצב:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.hu.po b/components/ideintf/languages/objinspstrconsts.hu.po index 8b249d7ba1..e79ad285db 100644 --- a/components/ideintf/languages/objinspstrconsts.hu.po +++ b/components/ideintf/languages/objinspstrconsts.hu.po @@ -1587,6 +1587,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Állapot index:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.id.po b/components/ideintf/languages/objinspstrconsts.id.po index 4f165dfb8e..6b8472710d 100644 --- a/components/ideintf/languages/objinspstrconsts.id.po +++ b/components/ideintf/languages/objinspstrconsts.id.po @@ -1650,6 +1650,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Indeks Keadaan:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem #, fuzzy msgctxt "objinspstrconsts.sccslvedtnewitem" diff --git a/components/ideintf/languages/objinspstrconsts.it.po b/components/ideintf/languages/objinspstrconsts.it.po index 751d33e9fc..e6509756c3 100644 --- a/components/ideintf/languages/objinspstrconsts.it.po +++ b/components/ideintf/languages/objinspstrconsts.it.po @@ -1590,6 +1590,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Indice di stato:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.ja.po b/components/ideintf/languages/objinspstrconsts.ja.po index f468c8b287..94b9e6ec18 100644 --- a/components/ideintf/languages/objinspstrconsts.ja.po +++ b/components/ideintf/languages/objinspstrconsts.ja.po @@ -1597,6 +1597,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "ステートのインデックス:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.lt.po b/components/ideintf/languages/objinspstrconsts.lt.po index 07876eae95..0e573e6651 100644 --- a/components/ideintf/languages/objinspstrconsts.lt.po +++ b/components/ideintf/languages/objinspstrconsts.lt.po @@ -1589,6 +1589,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Būsenos indeksas:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.nl.po b/components/ideintf/languages/objinspstrconsts.nl.po index 6f741061cd..e125c67b5a 100644 --- a/components/ideintf/languages/objinspstrconsts.nl.po +++ b/components/ideintf/languages/objinspstrconsts.nl.po @@ -1642,6 +1642,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Status index:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.pl.po b/components/ideintf/languages/objinspstrconsts.pl.po index 28570f3e52..48956699de 100644 --- a/components/ideintf/languages/objinspstrconsts.pl.po +++ b/components/ideintf/languages/objinspstrconsts.pl.po @@ -1582,6 +1582,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.pot b/components/ideintf/languages/objinspstrconsts.pot index 6b5cdfaba4..29c4686e10 100644 --- a/components/ideintf/languages/objinspstrconsts.pot +++ b/components/ideintf/languages/objinspstrconsts.pot @@ -1574,6 +1574,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.pt_BR.po b/components/ideintf/languages/objinspstrconsts.pt_BR.po index ffbd75ab27..8456025736 100644 --- a/components/ideintf/languages/objinspstrconsts.pt_BR.po +++ b/components/ideintf/languages/objinspstrconsts.pt_BR.po @@ -1583,6 +1583,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Índice Estado:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.ru.po b/components/ideintf/languages/objinspstrconsts.ru.po index 2348e305fb..7b93cffa97 100644 --- a/components/ideintf/languages/objinspstrconsts.ru.po +++ b/components/ideintf/languages/objinspstrconsts.ru.po @@ -1583,6 +1583,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Индекс состояния:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.sk.po b/components/ideintf/languages/objinspstrconsts.sk.po index 2f05369a5f..2bee9714ac 100644 --- a/components/ideintf/languages/objinspstrconsts.sk.po +++ b/components/ideintf/languages/objinspstrconsts.sk.po @@ -1597,6 +1597,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Stavový index:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.tr.po b/components/ideintf/languages/objinspstrconsts.tr.po index 925c7a754c..a76bdc409c 100644 --- a/components/ideintf/languages/objinspstrconsts.tr.po +++ b/components/ideintf/languages/objinspstrconsts.tr.po @@ -1583,6 +1583,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Durum dizini:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.uk.po b/components/ideintf/languages/objinspstrconsts.uk.po index 567b78218c..e57168970d 100644 --- a/components/ideintf/languages/objinspstrconsts.uk.po +++ b/components/ideintf/languages/objinspstrconsts.uk.po @@ -1586,6 +1586,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "Індекс стану:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/languages/objinspstrconsts.zh_CN.po b/components/ideintf/languages/objinspstrconsts.zh_CN.po index a03aeaed59..e114f5a63d 100644 --- a/components/ideintf/languages/objinspstrconsts.zh_CN.po +++ b/components/ideintf/languages/objinspstrconsts.zh_CN.po @@ -1584,6 +1584,10 @@ msgctxt "objinspstrconsts.sccslvedtlabelstateindex" msgid "State Index:" msgstr "状态索引:" +#: objinspstrconsts.sccslvedtmsgownerdata +msgid "List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead." +msgstr "" + #: objinspstrconsts.sccslvedtnewitem msgctxt "objinspstrconsts.sccslvedtnewitem" msgid "New Item" diff --git a/components/ideintf/listviewpropedit.pp b/components/ideintf/listviewpropedit.pp index 0fc4ca719d..c77a2b2071 100644 --- a/components/ideintf/listviewpropedit.pp +++ b/components/ideintf/listviewpropedit.pp @@ -29,7 +29,7 @@ interface uses Classes, SysUtils, // LCL - Forms, Controls, ComCtrls, StdCtrls, Buttons, ButtonPanel, + Forms, Controls, ComCtrls, StdCtrls, Dialogs, Buttons, ButtonPanel, // IdeIntf PropEdits, ComponentEditors, ObjInspStrConsts, IDEWindowIntf; @@ -92,6 +92,13 @@ function EditListView(AListView: TListView): Boolean; var ListViewEditorDlg: TListViewItemsEditorForm; begin + if AListView.OwnerData then + begin + MessageDlg(sccsLvEdtMsgOwnerData, mtError, [mbOK], 0); + Result := false; + exit; + end; + ListViewEditorDlg := TListViewItemsEditorForm.Create(Application); try ListViewEditorDlg.LoadFromList(AListView); diff --git a/components/ideintf/objinspstrconsts.pas b/components/ideintf/objinspstrconsts.pas index 27366703fb..399054c2c6 100644 --- a/components/ideintf/objinspstrconsts.pas +++ b/components/ideintf/objinspstrconsts.pas @@ -134,6 +134,7 @@ resourcestring sccsLvEdtLabelImageIndex = 'Image Index:'; sccsLvEdtLabelStateIndex = 'State Index:'; sccsLvEdtItem = 'Item'; + sccsLvEdtMsgOwnerData = 'List items cannot be edited at design-time when OwnerData is enabled. Use Items.Count and OnData at run-time instead.'; // Image editor strings oisImageListComponentEditor = 'I&mageList Editor ...';