Links
EControl Form Designer Pro
edIOUtils.zReadCmpFromFile Function

Reads component's resource from the file (forms, data modules, ...). As against of ReadComponentResFile, it performs: 

 

  1. Automatic detection file format (text / binary).
  2. Existing element is not deleted, it is only updated from the resource.
  3. Not existing components are created and loaded from resource.
  4. If loaded component is a registered frame, it is initialized during creation.
  5. Allows ignoring and processing errors using OnError procedure.
  6. Allows controlling component creation using OnCreateCmp procedure.

 

Events - list of event associations, where names are event path, values - script procedures. If Events is nil no event associations are read from form.

procedure zReadCmpFromFile(const FileName: string; Root: TComponent; OnError: TReaderError = nil; OnCreateCmp: TCreateComponentEvent = nil; Events: TStrings = nil);

edIOUtils

Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
What do you think about this topic? Send feedback!