VBA screen switch on multi-monitor system
Hi to all
I use zenon 7.11 with 2 monitors. I have some popup screen which I start by the screen switch function from VBA code from combined element. I use VBA code for some substitutions of the replace links of the my RTfunction.
My combined element can be displayed on left or on right monitor accordingly. But my popup screen is always displayed on left monitor.
Would you tell me how to do that popup screen is displayed on right monitor if it was started from right monitor?
P.S. I've tested If I start my screen switch function not from VBA code but just from button then my popup screen is displayed correctly. From left monitor on left monitor. And from right monitor on right monitor accordingly.
Part of VBA code that I use.
Public Sub StartFunction(strFuncName As String)
Dim zFCT As RtFunction
Set zFCT = thisProject.RtFunctions.item(strFuncName)
If Not zFCT Is Nothing Then
zFCT.Start
End If
End Sub
This is a migrated post! Originally posted on 17.06.2014 by user andrey_k. Please be aware that information can be outdated.