TdxCustomSpreadSheet.OnPrepareLockedStateImage Event
Enables you to custom paint a “Locked View“ image.
Declaration
property OnPrepareLockedStateImage: TdxSpreadSheetPrepareLockedStateImageEvent read; write;
Remarks
This event fires on the “Locked View” image repaint.
Use the Sender parameter to refer to the Spreadsheet or Report Designer control that raised the OnPrepareLockedStateImage event. To access the control’s type-specific members, cast the parameter to the TdxSpreadSheet or TdxSpreadSheetReportDesigner class.
AImage specifies the bitmap image displayed on top of the worksheet in the locked state. This parameter is initialized with an image depicting the currently active worksheet at the moment it is locked.
The ADone parameter specifies if the control uses a custom painter for a “Locked View” image. Pass False as the parameter to paint the visual effect and message box over the AImage as determined by the OptionsLockedStateImage option set. Pass True as the ADone parameter to prevent the standard image processing and provide a custom “Locked View” image painter.