JVCL Help:TJvLinkedControls

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvLinkedControls
run\JvLinkedControls.pas


Summary

Maintains a list of linked controls.

run\JvLinkedControls.pas


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.

run\JvLinkedControls.pas


About

Navigation

run\JvLinkedControls.pas



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