Jam*_*amo 5 delphi custom-component
我正在构建一系列可视复合组件,它们使用类似/常用的"连接"方法,这些方法会激活内部表格等.
我正在自动化一些连接的东西,以便在运行时自动连接.如何在组件级别告诉当前状态是运行时还是设计时?
Her*_*itz 16
我想你想检查csDesigning组件ComponentState属性中是否存在该标志:
if csDesigning in ComponentState then
// designtime
else
// not designtime
Run Code Online (Sandbox Code Playgroud)