Load the POPUP module on the monitor where you specified the display position. If the specified monitor is not connected, it will be displayed on the main monitor.
void @LoadModulePositionMonitor(string filename, int method, int posX, int posY, int monitorIndex);
Parameters
filename: Enter the name of the Modx file. ¡°???. MODX¡±
method : 0 from the center, 1 from the top left, 2 from the right side, 3 from the bottom left, 4 from the bottom right
posX : X coordinate of the POPUP window to be located
posY : The Y coordinate of the POPUP window to be located
monitorIndex : Reference monitor index (Monitor index can be checked through the 'Check Monitor' button in the module property settings window)
Return value
None.
Example1)
@LoadModulePosition("POPUP.MODX", 1, 100, 100, 1);
Description : When the graphic screen of "POPUP.modx" is displayed on the Local Server screen, it is displayed at the position of 100 pixels on the X axis and 100 pixels on the Y axis based on the upper left corner (method : 1) of monitor No. 1.
Example2)
i = @IsMonitorConnected(2);
if( i == 1) @LoadModulePosition("POPUP.MODX", 1, 100, 100, 2);
else @LoadModulePosition("POPUP.MODX", 0, 0, 0, 1);
Description :
If monitor 2 is connected, POPUP.MODX module is displayed at 100 pixels on
the X axis and 100 pixels on the Y axis based on the upper left corner (method
1) of monitor 2.
If monitor 2 is not connected, POPUP.MODX module is
displayed in the center (method : 0) position of monitor No. 1.
Version Information
Supported Version: 10.3.6.21
Related Helps)