Applies To:
  • CitectSCADA 6.0, 6.1
  • CitectHMI 6.0, 6.1

Summary:

Input() function does not work properly in the multimonitor mode, it comes up in the middle of two screens.

Is there a CSV_MM_Input() function? 


Solution:

There is no CSV_MM_input() function available at the moment, you can use the following function instead:

This code has to be added to the end of CSV_MultiMonitors.ci file inside the CSV_Include project.

STRING FUNCTION
CSV_MM_Input()
 STRING In;
 INT iX;
 INT iY;
 INT iMonitor;
 iMonitor = CSV_MM_GetMonitor();
 iY = (WndInfo(1)-248)/2;
 iX = CSV_MM_GetOffset(iMonitor) + (CSV_MM_GetScreenWidth() - 292)/2;
 FormNew("title",40,3,8);
 FormPosition(iX, iY, 0);
 FormInput(0,0.4,"input",In,30);
 FormButton(5,2.2,"   OK   ",0,1);
 FormButton(27,2.2," CANCEL ",0,2);
 IF (FormRead(0) = 0) THEN
  RETURN In;
 ELSE
  RETURN " ";
 END
END

This is just a sample code and can be changed to suit your own needs (like the title, input etc). 


Keywords:
 

Attachments