JVCL Help:GetItemEnabledState
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: GetItemEnabledState function
[+] JvDataProvider.pas Functions
Search in JVCL Help
Search in all projectsSummary
Retrieve the enabled state of the specified item.
Pascal
run\JvDataProvider.pas
functionGetItemEnabledState(Item: IJvDataItem): TDataItemState;
Parameters
Parameters | Description |
Item: IJvDataItem | Item to determine the enabled state of. |
Description
GetItemEnabledState determines the enabled state for the specified item. The following rules apply to determine the enabled state:
- If a consumer is selected into the provider and the consumer supports theIJvDataConsumerItemState interface, the enabled state is retrieved from the IJvDataConsumerItemState.Enabled method.
- If the above did not apply or resulted in a state other than disFalse and the specified item supports the IJvDataItemStates, the state is copied from the IJvDataItemStates.Enabled property.
- If both of the rules above did not apply, the result will be disUnused.
This function is often used by consumer sub services and/or provider implementations (e.g. rendering implementations) to determine the correct state for drawing.
See Also
GetItemCheckedState, GetItemVisibleState, IJvDataConsumerItemState, IJvDataItemStates
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