Items added to collections via context menu are not displayed in object tree
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
There are several ways to add items to collection properties, one of them is the possibility to right-click on the collection in the object tree and to select "Add item" from the context menu. This creates a new item in the collection, but the new item is not displayed in the object tree. This used to work in v2.0.10, but no longer in trunk.
Steps to reproduce:
- Add a TStatusbar to the form
- Click on the '...' next to the Panels property in the object inspector to open the Panels Editor.
- Click "Add" --> a new item "0 - StatusPanel" appears in the object tree. That's correct.
- But: Select the node "Panels" in the object tree and do a right-click and select "Add item" from the context menu. --> Nothing happens, but when you open the Panels Editor really a new panel has been added.
Other examples are
- TStringList.Columns
- TCoolbar.Bands
- TBufDataset.FieldDefs, .IndexDefs
Additional information:
Probably related to the recent changes of the OI.
Mantis conversion info:
- Mantis ID: 38239
- Fixed in revision: r64263 (#9c379170)