JVCL Help:TJvBitBtn.HotTrackFontOptions
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvBitBtn.HotTrackFontOptions Property
Search in JVCL Help
Search in all projectsSummary
Specifies how changes to the Font affects HotTrackFont.
Pascal
propertyHotTrackFontOptions: TJvTrackFontOptions;
Description
HotTrackFontOptions defines a set of options that controls how changes to the Font property affects the HotTrackFont object. For example, when HotTrackFontOptions includes hoPreserveColor, all property changes in Font are copied to HotTrackFont except Color changes.
Note that hoFollowFont must be included for any properties to be copied at all.
To implement the HotTrackFontOptions property in a new control, you should perform the following steps:
- Add JvTypes and JvJVCLUtils to the uses clause of the control's unit.
- Add a HotTrackFontOptions property of type TJvTrackFontOptions to the control. Set its default value to be DefaultTrackFontOptions (defined in JvTypes).
- Set the default value in the constructor.
- Add a handler for the CM_FONTCHANGED message. Add a call to UpdateTrackFont (defined in JvJVCLUtils) after calling inherited.
- Add a call to UpdateTrackFont in SetHotTrackFontOptions
See Also
TJvBitBtn.HotTrack, TJvBitBtn.HotTrackFont
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