JVCL Help:TJvInspectorPainter.SetupItem

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

Search in JVCL Help

 
Search in all projects
 

Summary

Initializes item painting.


Pascal

 procedureSetupItem; virtual;


Description

SetupItem will initialize the painter to render the specified item. On entry to this method, either Item or ItemIndex has been set by the PaintItem method. Depending on which is set the following actions will be taken:

  • If ItemIndex is set, the corresponding item will be retrieved and stored in the Item property.
  • If an item is available, the ButtonImage will be set to either nil, the bitmap returned by GetCollapseImage or the bitmap returned by GetExpandImage.
  • If an item index was specified, SetupRects is called to calculate the item rectangles.

Descendants can override this method to do additional initialization if needed.


See Also

TJvInspectorPainter.PaintItem


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