|
1. Add up to 21 names of properties that you might want to enforce restricted editing on to the to the TObjectInspector's BitmaskProps property |
![]() |
|
|
2. Open the Bitmask Creator program that was included with the TObjectInspector component suite. The default screen with all properties checked is a tag of zero (0) which represents unrestricted editing for a control. |
![]() |
|
|
3. Under the File menu, select Add PropertyNames and then add the same property names as were added to the TObjectInspector's BitmaskProps property. It is imperative that the order of the property names added to the Bitmask Creator match exactly the property names added to the BitmaskProps property. The Visible, Enabled, ReadOnly, Required, and Caption properties as well as the Can Delete, Can Cut, Can Copy, and Can Paste directives have been pre-set with static values. By default, the TDFMMerger looks for a property called UserDefined when checking for user-defined controls, but you can also denote a user-defined control by setting its Tag property to a specific value. If you want to use the built-in feature for identifying user-defined controls with tags in the TDFMMerger, you must fill in the first available property name slot (HEX 0200, DECIMAL 512) with an non-existent property name. Then, set any user-defined control's tag property to include the decimal value that is created when the checkbox corresponding to DECIMAL 512 is left unchecked. In other words, a control with a tag of 512 would be determined to be user-defined and a control with a tag of 513 would be user-defined and incapable of having its visible property altered. |
![]() |
|
|
4. Close the Add Properties screen and return to the Main Screen. Notice that the new properties are now available in the checkbox group. Deselect the Color property checkbox. The tag value necessary for a control that the Color property should not be editable for is 1024. |
![]() |
|
|
5. Deselect the Hint property checkbox. The tag value necessary for a control that the Color and the Hint properties should not be editable for is 5120. Numerous combinations of editable and uneditable properties can be achieved using the Bitmask tag functionality. |
![]() |