Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

Align property

Project: Message Dialogue Components.

Unit: PJMessageDialog.

Class: TPJVCLMsgDlg

Applies to: ~>3.0

type
  TPJMsgDlgAlign = (
    mdaScreenCentre, mdaScreenOffset, mdaFormCentre, mdaFormOffset
  );

property Align: TPJMsgDlgAlign;

Description

The Align property determines the alignment of the dialogue box relative to either the screen or the owner form. The various values it can take are described below:

Value Description
mdaScreenCentre The dialogue is centred over the screen.
mdaScreenOffset The dialogue is offset from the top left corner of the screen by the amount given by the values of the OffsetLeft and OffsetTop properties.
mdaFormCentre The dialogue is centred over the owning form. If no owning form can be found the dialogue is centred on the screen.
mdaFormOffset The dialogue is offset relative to the top left corner of the owning form by the amount given by the values of the OffsetLeft and OffsetTop properties. If no owing form can be found the dialogue is offset relative to the screen.

The default value of the property is mdaScreenCentre.