Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomSpreadSheet.OnPrepareLockedStateImage Event

In This Article

Enables you to custom paint a “Locked View“ image.

#Declaration

Delphi
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.

See Also