zoukankan      html  css  js  c++  java
  • 组件状态(TComponentState)11种和组件状态(TComponentStyle)4种

    TOperation = (opInsert, opRemove);

    TComponentState = set of (

    csAncestor The component was introduced in an ancestor form. Only set if csDesigning is also set.
    csDesigning The component is in a form being manipulated by the form designer.
    csDestroying The component is about to be destroyed.
    csFixups The component is linked to a component in another form that has not yet been loaded. This flag is cleared when all pending fix-ups are resolved.
    csFreeNotification One or more other components have requested that this component notify them when it is destroyed. This flag is set when another component calls this component抯 FreeNotification method.

    csInline The component is a top-level component that can be modified at design time and also embedded in a form. This flag is used to identify nested frames while loading and saving.
    csLoading A filer object is currently loading the component. This flag is set when the component is first created and not cleared until the component and all its children are fully loaded (when the Loaded method is called).
    csReading The component is reading its property values from a stream. Note that the csLoading flag is always set as well when csReading is set. That is, csReading is set for the subinterval of the time when a component is loading that covers reading in property values.

    csUpdating The component is being updated to reflect changes in an ancestor form. Only set if csAncestor is also set.
    csWriting The component is writing its property values to a stream.
    csDesignInstance The component is the root object in a designer. For example, it is set for a frame when you are designing it, but not on a frame that acts like a component. This flag always appears with csDesigning.

    );

    ------------------------------------------------------------------------------------

    TComponentStyle = set of (
    csInheritable Descendant form types can inherit from the component. If any of the components in a form do not have the csInheritable style, the form cannot be used as the ancestor of an inherited form.
    csCheckPropAvail The component needs to check its properties for readability. This is only used for COM controls (on Windows), where the Object Inspector cannot tell directly that a property is readable, and therefore displayable.
    csSubComponent The component is a subcomponent of the component that is the value of its Owner property. Unlike top-level components, subcomponents are not saved with the form or data module in which they reside. Instead, a subcomponent appears as the value of a published property of its Owner, and its published properties and events are saved in the form file with the owning component.
    csTransient The component is a temporary object that should not be saved in a form file.
    );

  • 相关阅读:
    [虚拟化/云][全栈demo] 为qemu增加一个PCI的watchdog外设(二)
    PHP中PDO的配置与说明
    PHP输出表格的方法
    打印网格版本9*9乘法表
    js中日历的代码
    js中初学函数的使用
    c#中的23种设计模式
    用多态来实现U盘,Mp3,移动硬盘和电脑的对接,读取写入数据。
    用面向对象多态的思想分别去求圆形和长方形的面积和周长
    面向对象之多态(抽象类)
  • 原文地址:https://www.cnblogs.com/findumars/p/5188210.html
Copyright © 2011-2022 走看看