Edit properties like it TPageControl does

I experimented with various Delphi property editors and even made an editor as a separate window.

Now I would like to develop a visual control containing variable amount of several complex display items like this:

┌─────────────────────────┐
│    Parent control       │
│ ┌─────────────────────┐ │
│ │   Display Item 1    │ │
│ ├─────────────────────┤ │
│ │   Display Item 2    │ │
│ ├─────────────────────┤ │
│ │   Display Item 3    │ │
│ ├─────────────────────┤ │
│ │   Display Item 4    │ │
│ └─────────────────────┘ │
└─────────────────────────┘

and would like to edit each Display Item's properties in Object Inspector like it the TPageControl with its TTabSheets does.

It means that I click on some of Display Items and its properties appear in Object Inspector, ready to edit. I click Parent Control and can edit it's properties in Object Inspector.

How to achieve this? Please give me a clue.

PS I thought about the TDBGrid property editor, but it behaves differently: When I click on columns property in Object Inspector columns editor window appears and when I select some item in it, I can edit it's properties. I would like to do this without intermediate window.

链接地址: http://www.djcxy.com/p/63140.html

上一篇: 将Symfony2会话存储在redis中

下一篇: 像TPageControl一样编辑属性