TSRVDrawTabEvent Type |
Top Previous Next |
|
A type of the following events of TSRVTabSet: •OnDrawCloseButton Unit SRVPreview. type TSRVDrawTabEvent = procedure(Sender: TSRVTabSet; Canvas: TCanvas; ARect, PaintRect: TRect; TabIndex: Integer; State: TSRVDrawStates; var DoDefault: Boolean) of object; Parameters Canvas – a canvas where to draw. ARect – a rectangle defining the position of the object to draw. APaintRect – a rectangle that needs to be redrawn. You can use this parameter to optimize drawing. TabIndex – the index of the tab (in Tabs) where this drawing should occur. State – a set describing the current tab state. Set DoDefault to False to prevent the default drawing of this tab. |