You are here: Symbol Reference > JSDialog Namespace > Classes > TJSCustomDialog Class > TJSCustomDialog Properties > TJSCustomDialog.DefaultMonitor Property
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCustomDialog.DefaultMonitor Property

The monitor on which to display the dialog on.

Pascal
property DefaultMonitor: TDefaultMonitor;

Use this property to manipulate which monitor you want the dialog to display on.

This setting is ignored when the Position is set to dpOwnerFormCenter.

To display the dialog on a secondary monitor (which is setup to the left of the primary monitor) and the active form is on the primary monitor, use the following:

JSDialog1.DefaultMonitor := dmDesktop;
JSDialog1.Location.X := -500;
JSDialog1.Location.Y := 0;
JSDialog1.Position := dpDesigned;
JSDialog1.Execute;
Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!