JVCL Help:TJvCustomOutlookBar.OnCustomDraw

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

Search in JVCL Help

 
Search in all projects
 

Summary

Event handler for custom drawing


Pascal

 TJvOutlookBarCustomDrawEvent = procedure (Sender: TObject; ACanvas: TCanvas; ARect: TRect; AStage: TJvOutlookBarCustomDrawStage; AIndex: Integer; ADown, AInside: Boolean; var DefaultDraw: Boolean) ofobject;
propertyOnCustomDraw: TJvOutlookBarCustomDrawEvent;


Parameters

Parameters Description
ADown Depends on the stage. For pages, indicates whether the page button is pressed, For buttons, indicates whether the button is down.
AIndex Depends on the stage. If AStage is odsPage or odsPageButton, AIndex refers to the page index. If AStage is odsButton or odsButtonFrame, AIndex refers to the button's index on the active page.
DefaultDraw Set to true (the default) if you want the control to perform it's default drawing.
AInside Only used with button stages. Specifies whether the mouse is inside the button.
ACanvas The Canvas to draw on
Sender The TJvOutlookBar that triggered the event.
AStage The current draw stage.
ARect The area to draw in.


Description

Write a handler for this event if you want to custom draw the outlook bar. You can selectively draw only the parts you are interested in and let the control handle the drawing of other elements.


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