JVCL Help:TJvFontComboBox.OnDrawPreviewEvent

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

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when the control is about to draw a font preview.


Pascal

 propertyOnDrawPreviewEvent: TJvDrawPreviewEvent;


Parameters

Parameters Description
Sender The control that triggered the event.
AFontName The name of the font about to be drawn.
APreviewText The text to use to draw the preview.
ATextWidth The approximate width required to draw the font name and the preview text.
DrawPreview Indicates whether to draw the preview or not for this font. The default value is determined by comparing ATextWidth with ClientWidth.


Description

Write a handler for the OnDrawPreviewEvent to selectively suppress drawing of the font preview in the control. OnDrawPreviewEvent is only called if foPreviewFont is in Options.


See Also

TJvFontComboBox.Options


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