AnsweredAssumed Answered

Opening display on top in Processbook

Question asked by sylpiette on Jan 12, 2016
Latest reply on Jan 20, 2016 by sylpiette

Good afternoon everyone,

 

In Processbook, I'm trying to open a display, in VBA. I have a button in a display, which VBA code is like this :

 

     Dim dis As Display

   

    Set dis = Application.Displays.Open("C:\SampleInfo.PDI", True)

    dis.SetCurrentContext "Some parameters"

    dis.Activate

 

The display "SampleInfo.PDI" really has a sub "SetCurrentContext", which is used to pass a context to the display.

 

When I hit the button to open the new display, it appears for few milliseconds, then it is sent to background, the calling display is back on top.

 

Is there a way to force a display to be on top ?

 

 

I've tried to minimize the calling display and maximize the new one, but it doesn't work. You also see that I'm calling the "Activate" method, without success.

Outcomes