Creating components at runtime - Delphi

前端 未结 9 1894
孤街浪徒
孤街浪徒 2020-12-02 15:04

How can I create a component at runtime and then work with it (changing properties, etc.)?

9条回答
  •  被撕碎了的回忆
    2020-12-02 15:08

    If you nest win controls in Group Boxes/Page Controls/Etc..., I think it is beneficial to have the parent group box also be the owner. I've noticed a sharp decrease in window close times when doing this, as opposed to having the owner always be the main form.

提交回复
热议问题