Window Operations * ITW. / NTW.

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations > ITW. - If Top Window >

Window Operations * ITW. / NTW.

"b" - Flag "window to back"

Previous Top Next


MiniRobotLanguage (MRL)

 

"b" - Flag "window to back"

window to back

 

 

Intention

 

In most cases we want the window to come in front of other windows. so we can use it. For this we do not need any ITW.-flag, as this is the default behavior of the ITW.-command.

 

In some cases, we want just the opposite. We want a window to go behind all other windows. We sent a "window to back". For this we use the "b"-Flag.

 

It will locate the window "on Top" and sent it to back. See the example below.

 

 

Example

 

' Close all such windows if there are some open

CAW.PBWindowClass:0|BCS - Testform

 

' Open 5 Terstforms and position them nicely

FOR.$$CNT|1|5

 EXE.?exepfad\Sample Apps\BSC-Testform.exe

 ITW.p|#pid#

  SWP.(100+55*$$CNT),(200+55*$$CNT)

 EIF.

NEX.

 

FOR.$$CNT|1|50

'Move Testform "On top" to back

 ITW.ctb|PBWindowClass:0|BCS - Testform

 ' Make small rest of 0.1 seconds so we can see it

 PAU.0.1

 EIF.

NEX.

 

' Close all Testforms

CAW.PBWindowClass:0|BCS - Testform

ENR.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

 

See also:

 

-