Download Now
Forums

    Reference Codebot.Frame.Lfm.pas

    Part of the Codebot Frame Design package

    The Codebot.Frame.Lfm unit reads the text of a form file into a tree of TLfmObject objects, one for each component, each with its TLfmProperty properties and its child components.

    A simple value, such as a number, string, identifier, or set, is kept as Pascal source, so it can be written into code just as it is. The lines of a list, the hexadecimal text of binary data, and the items of a collection are kept separately. Each property also keeps its text as it appears in the form file, so a property that cannot be written as code can be converted to binary form and stored as a resource.

    ParseLfm reads the text of a form file and returns its root object. If the text cannot be read, it raises ELfmError with the line number.

    Items 32 items

    NameKindLine
    ELfmErrorclass93
    ParseLfmfunction96
    TLfmItemclass60
    Propertiesfield63
    Createconstructor64
    Destroydestructor65
    TLfmObjectclass70
    Childrenfield84
    IsInheritedfield78
    IsInlinefield76
    Namefield72
    Parentfield80
    Propertiesfield82
    TypeNamefield74
    Createconstructor85
    Destroydestructor86
    FindPropertyfunction88
    TLfmPropertyclass38
    CollectionItemsfield51
    IsIdentfield47
    Itemsfield49
    Kindfield42
    Namefield41
    Sourcefield53
    Valuefield44
    Createconstructor54
    Destroydestructor55
    TLfmValueKindenum26
    lvSimpleenum value28
    lvListenum value30
    lvBinaryenum value32
    lvCollectionenum value34