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

TdxPDFViewerPasswordDialogForm.Execute(TComponent,TcxLookAndFeel,string) Method

Invokes the Enter Password dialog for a specified parent component or control.

#Declaration

Delphi
class function Execute(AOwner: TComponent; ALookAndFeel: TcxLookAndFeel; out APassword: string): Boolean; overload;

#Parameters

Name Type Description
AOwner TComponent

The parent form of the target PDF Viewer control.

ALookAndFeel TcxLookAndFeel

The source of look & feel settings for the Enter Password dialog.

APassword string

The entered password.

#Returns

Type Description
Boolean

The function returns False if an end user closed the “Enter Password” dialog without input confirmation; otherwise, True.

#Remarks

The AOwner parameter specifies the parent form of a PDF Viewer control. The ALookAndFeel parameter accepts source look & feel settings.

Password Dialog Form

If the Enter Password dialog is closed with a click on the OK button or the Enter keystroke, the Execute function returns True as a result and the dialog field’s content as the APassword parameter. Otherwise, the function returns False.

See Also