• 组件状态(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.
    );

  • 相关阅读:
    对websoceket进行压力测试(一)
    学习springboot的一个网站
    重装mysql数据库
    websocket扫盲:基础知识(二)
    json-lib 之jsonConfig详细使用
    hibernate的like用法(用占位符解决)
    【转载】hibernate查询参数绑定
    Struts2 Anotation action
    PLSQL怎样导出oracle表结构
    从命令行启动oracle服务
  • 原文地址:https://www.cnblogs.com/findumars/p/5188210.html
Copyright © 2020-2023  润新知