代码说明:
DCPropCheck is a descendant of TCheckBox that can be linked to the value of Boolean property of component. Comparing to TCheckBox there are three new properties:
Component: TComponent - the component, which property will be edited. Here you can enter the name of the component or select it from drop-down list.
PropName: string - the name of the property, which will be edited
Inverted: Boolean - If this property is set DCPropCheck will display inverted value.
Instead of writing event handlers you just use DCPropCheck and specify there Component and PropName properties.
TCheckBor的派生类DCPropCheck
【立即下载】
|