JVCL Help:TJvCustomInspectorItem.DrawEditor

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

Search in JVCL Help

 
Search in all projects
 

Summary

Draws the editor.


Pascal

 procedureDrawEditor(constACanvas: TCanvas); virtual;


Parameters

Parameters Description
const ACanvas: TCanvas Canvas to draw on.


Description

DrawEditor draws the editor. The implementation of TJvCustomInspectorItem will check if an edit control has bee generated and paint the edit's image onto the inspector's canvas, including any edit buttons (drop-down or ellipses). This will reduce the flickering when dragging the divider bar.
Descendants can override this method to paint a state / value to be used while editing. For example, TJvInspectorBooleanItem overrides DrawEditor to draw the image of a checkbox (no actual checkbox is used).
DrawEditor is called by DrawValue when the item is in edit mode.


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