Property Corrector

Property Corrector

This wizard is used to modify components' properties by some customized rules. Destination can be all components in current form or all forms in current project/projectgroup.

The main dialog of Property Corrector is as below:

- Current Form: Correct all components in current form, including form itself and all sub-components.

- All Opened Forms: Correct all components in all opened forms, including forms themselves and all sub-components.

- Forms in Current Project: Correct all forms and all components in current project, including all sub-components.

- Forms in Current ProjectGroup: Correct all forms and all components in current projectgroup, including all sub-components.

- Search: Search or correct properties according to the rules.

- Confirm All: Confirm all modifications in searching results.

- Undo: Undo the modification for selected item.

- Options: Set correction rules here.

- Close: Close this dialog.

Property Corrector will search all components' properties to find those targets by the rules. If the Action in the rule is 'Auto Correct', this property will be modified automatically and displayed in listbox. If it's 'Prompt', this property need to be confirmed in the listbox by right clicking and selecting 'Confirm Modify' in popup menu. 'Locate the Component' can let you select the component in the form designer. 'Undo' to undo the modification.

Rules Settings

If 'Options' button was clicked, the rules settings dialog will appear as below:

- Add: Add a rule.

- Edit: Edit the selected rule.

- Delete: Delete the selected rule.

- Import: Import rules from file. Imported rules will overwrite those existing rules.

- Export: Export all rules to a file.

The checkbox shows whether this rule is enabled.

Rule Editor

Rule Editor dialog will appear when clicking 'Add' or 'Edit' button, as below:

A property correcting rule can be explained as a modification to a property when the property is satisfied to a comparing condition. Certainly the modification can be set to need confirming mode or auto correcting mode.

- Class: Classname in the rule, which can be selected from dropdown list. It can not be empty.

- Property: Property name in the rule. It can not be empty.

- Condition: Condition operator in the rule.

- Value: Value to compare in the rule.

- Action: If the condtion was satisfied, what to do can be specified here, including 'Auto Correct' or 'Confirm'.

- Modify to: Destination value in the rule.

- Enable this Rule: Enable/Disable this rule in searching.

Links

Basic Operation

CnWizards Settings

About CnWizards

Copyrights 2001-2015 CnPack Team