- An Example
- Other Property Class Actions
- Visual Attributes
- Summary
Other Property Class Actions
In the previous example, there was a property class with only one real property. Ideally, you would add several more properties to the class to control the actions for a large number of form objects. In the shape example, you might add the fill pattern or foreground color properties. This is done by selecting an object with the desired properties, copying them to the Property Palette Clipboard using the first icon on the Property Palette toolbar and pasting them into the property class using the second icon on the Property Palette toolbar. You can also use the Add Property icon, but that brings up a dialog box that lists all the possible property choices. Frankly, that can be overwhelming because there are so many.
If you can add properties, you can also delete them. That can be helpful, especially if you have been a bit overzealous with the Add button. Ideally, you only include the important properties that define your objects, and forget about the ones that never will be modified.
Finally, you may want all objects in your application to conform to the property class except for one property of a single object. Perhaps you like red squares on all your forms, except for a strange form that needs a blue background. However, there are other properties that you want the blue square to continue inheriting. Simply override the background color property for the individual object. Then, if you decide to change all of the squares to green, the blue square will remain blue. To reinherit the background color property, select the background color property of the blue square and click the Inherit button on the Property Palette toolbar (sixth icon to the right).