Two Way Tools

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

Working on the IDE, some tools will modify the source code, or a modification in the source code, will reflect a change on a visual tool.

When a component is inserted in a form/datamodule/templated form:

  • A field for the component must be added to the class
  • The unit that contains the component code must be added to the uses list

If the component is removed:

  • The field from the class must be removed
  • The uses list must not be modified
  • Structure tree must reflect the deletion

When a component is renamed:

  • The field for that component is renamed
  • Assigned events are renamed
  • Structure tree must reflect the component name change
  • Object Inspector component list must reflect the component name change

When a Page is renamed:

  • The code behind it is updated accordingly
  • Class name is renamed with the new name
  • All instances generated by the IDE are renamed also
  • Assigned events are renamed

When a Page is saved:

  • Empty events are removed, an empty event is considered a method that has been assigned to any component on the form
Personal tools