JVCL Help:TJvLinkedControls
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvLinkedControls Class
[+] JvLinkedControls.pas Classes
[+] TJvLinkedControls Methods
[+] TJvLinkedControls Properties
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvLinkedControls
run\JvLinkedControls.pas
Summary
Maintains a list of linked controls.
Pascal
run\JvLinkedControls.pas
TJvLinkedControls = class(TOwnedCollection);
Description
TJvLinkedControls is used as a support class for controls that want to modify the Enabled state of other controls when its own properties changes. TJvLinkedControls cannot be used by itself: it must be associated with an owning control.
To add support for TJvLinkedControls to a control, you should:
- Declare a published property of type TJvLinkedControls
- Create the TJvLinkedControls instance in the constructor and set the AControl parameter ofTJvLinkedControls.Create to self.
- Destroy the TJvLinkedControls instance in the destructor.
- Override the control's Notification procedure and call TJvLinkedControls.Notification.
- Implement a method that iterates the list of linked controls when the Enabled state of the linked controls needs to be checked or changed.
For examples of controls using TJvLinkedControls, see TJvCheckBox and TJvRadioButton.
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page